<script>
var $keyborad=$("");
$(“input[type=password“”).on("click",function(){
$keyborad.animate({bottom:"0%"},effect);
return false;//阻止事件冒泡
});
$keyboard.on("click",function(){
return false;
}).find("table tr td button").on("click",function(){
var keyType =$(this).data("value");
switch(keyType){
case"CHANGE":
$this.parents("table:first").hide().siblings().show();
break;
case "PAY":
break;
case "DEL":
break;
case "CASE":
case =case=="lower"?"upper":""lower";
$keyborad.find""()table tr td button.;+letter
break;
default:
console.log(this.innerText);
}
});
$(document.body).animate({bottom:"-100%"},effect);
});
</script>
事件冒泡机制
<script>
$(function(){
$("")
})
</script>
(functionroot,factory,plug){
}(windows,function($,plug)))
var _TEM
$this.$target=$(this);
$that.trigger("ok",{|);
key.json
后台通过key 逆转
$each(data.numbers,funcion(i,obj){
$that.$keyboard.find("button[key]").eq(i).text(obj.text);
})