摘要:
//实现指定多少时间后执行callback const wait = (delay,callback) => { let p = new Promise((res,rej)=>{ setTimeout(()=>{ res(callback) },delay) }).then((callback)=> 阅读全文
摘要:
Vue.filter('format',function(timer,formatter){ //filter 没有this return moment(timer).format(formatter) }) let vm = new Vue({ el:'#app', data(){ return 阅读全文
摘要:
.net更新引用: 第一步:ABC_WS -> ****.asmx文件右键“在浏览器中查看” 第二步:ABC_MVC -> Web References -> Basic_WS右键“更新web引用” 创建页面传参: public ActionResult Info() { string curID 阅读全文
摘要:
<div id="sxt" style="width:335px;height:300px;position: relative;"></div> <div id="paiZhao" style="display: none;"> <a href="javascript:void(0)" class 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <style type="text/css"> .upper_limit_notice4 { width: 79px 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
<p id="p1">JShaman是专业的JavaScript代码混淆平台,用于JS加密、JS混淆。</p> //将指定文字换成canvas function word_2_canvas(target,word,index){ var c1 = document.createElement("ca 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <!-- canvas:H5新标签,在页面上绘制图形用的,(通常称它画布) canvas只是一个容器,用js脚本来控制它 --> < 阅读全文
摘要:
http://www.jacklmoore.com/autosize/ https://github.com/jackmoore/autosize?tab=readme-ov-file 列表空值自动删行,末行输入,底部自动增行,不超过10行,textarea文本域自动高度没有滚动条 <div id= 阅读全文
摘要:
ary.forEach(function(item,index){...}) forEach循环只能return结束本轮,不能结束整个 $.each(ary,function(index,item){...}) jq的each循环return true是结束本轮循环,return false是结束整 阅读全文
摘要:
降低频率用节流,防抖只触发最后的一次 <style> #SetLimitAdd td{ line-height: 20px; padding-top: 5px; padding-bottom: 5px; } #wrapper{} .container-fluid{ width:1747px;/*实际 阅读全文