attachEventListener|DomReady.add

attachEventListener|DomReady.add

<script>
function bindEventForTraffic(_city){
    var _ps = $("start_name");
    if(_ps){attachEventListener(_ps,'keyup',function(evt){
        suggestRoadAddrInCity(evt,_city);},false);
        attachEventListener(_ps,'keydown',function(evt){responseInput(evt,this);
    },false);}
    DomReady.add(function(){bindEventForTraffic('上海');});
</script>

你可能感兴趣的:(attachEventListener|DomReady.add)