随笔分类 -  JavaScript

摘要:$("#model_frame").on("click",function(){ $(this).hide(); console.log($(this)); }); $(".model").on("click",function(event){ event.preventDefault(); return false; //子节点return false 可以阻止事件向上传递 });... 阅读全文
posted @ 2016-11-30 20:20 好叶叶孤城 阅读(753) 评论(0) 推荐(0)
摘要:除法 function accDiv(arg1,arg2){ var t1=0,t2=0,r1,r2; try{t1=arg1.toString().split(".")[1].length}catch(e){} try{t2=arg2.toString().split(".")[1].length}catch(e){} with(Math){ r1=N... 阅读全文
posted @ 2016-07-12 09:28 好叶叶孤城 阅读(1362) 评论(0) 推荐(0)