上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: app.all("*", function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "content-type,Autho 阅读全文
posted @ 2019-01-14 15:12 大耳朵小虎 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 程序打包成可执行文件(.exe) 1.) npm install -g pkg 2.) 单个文件:pkg entrance.js ( windows: pkg -t win entrance.js ) 3.) pkg -t win package.json 4.) package.json的配置添加 阅读全文
posted @ 2019-01-08 10:16 大耳朵小虎 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1. http://jqtjs.com/preview/demos/main/index.html#home2. jquery weUI 插件:https://blog.csdn.net/u013314786/article/details/46839965 阅读全文
posted @ 2018-10-24 13:56 大耳朵小虎 阅读(101) 评论(0) 推荐(0) 编辑
摘要: this和super: super( ) EX6类的继承, 在react中官方固定应用 在java面向对象思想中这样定义: this表示当前对象,this()为当前对象的其他构造函数 super表示父类对象,super()为父类对象的其他构造函数 阅读全文
posted @ 2018-10-24 10:05 大耳朵小虎 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 当页面内容不容许别人复制时候 阅读全文
posted @ 2018-10-24 10:03 大耳朵小虎 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 添加以下css: overflow-y: scroll;-webkit-overflow-scrolling: touch; 阅读全文
posted @ 2018-10-19 11:37 大耳朵小虎 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. 只能输入数字: <input id="num" type="number" value="0" onkeyup="value=value.replace(/[^\d]/g,'')"> 2. 只能输入手机号: if (dom.type "number") { v_2 = v.replace(/[ 阅读全文
posted @ 2018-10-15 17:02 大耳朵小虎 阅读(203) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/Web/API/History_API Browser History APIs 阅读全文
posted @ 2018-09-19 11:10 大耳朵小虎 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ES5: function article(x,y){ this.x = x; this.y = y; } article.prototype.say = function() { return (this.x + "的年纪=" + this.y) } var person = new articl 阅读全文
posted @ 2018-09-06 14:48 大耳朵小虎 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1. Object.is( ); //用来判断,不同等 == 与 接近。NaN作出的调整 let obj={a:1,b:2}; Object.is(obj,obj);//true Object.is(obj,{obj});//false Object.is({},{});//false Object 阅读全文
posted @ 2018-08-30 10:09 大耳朵小虎 阅读(93) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页