<div?class="rool">
????<button?type="button"?class="btn"?id="tralef">TRA?LEF</button><!--左移動,方向不變-->
????<button?type="button"?class="btn"?id="tratop">TRA?TOP</button><!--上移動,方向不變-->
????<button?type="button"?class="btn"?id="trarig">TRA?RIG</button><!--右移動,方向不變-->
????<button?type="button"?class="btn"?id="trabot">TRA?BOT</button><!--下移動,方向不變-->
????<button?type="button"?class="btn"?id="movlef">MOV?LEF</button><!--左旋轉(zhuǎn),左移動-->
????<button?type="button"?class="btn"?id="movtop">MOV?TOP</button><!--上旋轉(zhuǎn),上移動-->
????<button?type="button"?class="btn"?id="movrig">MOV?RIG</button><!--右旋轉(zhuǎn),右移動-->
????<button?type="button"?class="btn"?id="movbot">MOV?BOT</button><!--下旋轉(zhuǎn),下移動-->
</div>function?go(ev){
????var?e=ev||window.event;
????var?btn=e.target||e.srcElement;
????var?btnId?=?btn.id;
????console.log(btnId);
}ev的參數(shù)我應(yīng)該寫什么實(shí)參?
獲取當(dāng)前點(diǎn)的的對象?
19990000
2017-10-28 10:39:32