软键盘原理

来源:互联网 发布:淘宝定制商品能退货吗 编辑:程序博客网 时间:2024/04/29 07:49

<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);


})


0 0
原创粉丝点击