随笔分类 - JavaScript
摘要:$("#model_frame").on("click",function(){ $(this).hide(); console.log($(this)); }); $(".model").on("click",function(event){ event.preventDefault(); return false; //子节点return false 可以阻止事件向上传递 });...
阅读全文
摘要:除法 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...
阅读全文

浙公网安备 33010602011771号