05 2018 档案

摘要:效果图: 阅读全文
posted @ 2018-05-31 16:02 neo_o 阅读(141) 评论(0) 推荐(0)
摘要:作用:父对象的构造函数绑定在子对象上 参数:Function.apply(obj,args)方法能接收两个参数 obj:这个对象将代替Function类里this对象 args:数组, Function.call(obj,param1,param2,param3,......) obj:这个对象将代 阅读全文
posted @ 2018-05-29 15:06 neo_o 阅读(127) 评论(0) 推荐(0)
摘要:function formatJson(msg) { var rep = "~"; var jsonStr = JSON.stringify(msg, null, rep) var str = ""; for (var i = 0; i 1) { var text = jsonStr.charAt... 阅读全文
posted @ 2018-05-25 17:52 neo_o
摘要:如图: 阅读全文
posted @ 2018-05-23 10:44 neo_o 阅读(3675) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2018-05-23 09:49 neo_o
摘要:function isNumber(val) { var regPos = /^\d+(\.\d+)?$/; //非负浮点数 var regNeg = /^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/; //负浮点数 if(regPos.test(val) || regN... 阅读全文
posted @ 2018-05-02 18:36 neo_o 阅读(71592) 评论(3) 推荐(1)
摘要:/*转化函数*/ function(data, attributes) { let resData = data; let tree = []; for(let i = 0; i < resData.length; i++) { if(resData[i][attributes.parentId] === attributes.rootId) { let obj = { ... 阅读全文
posted @ 2018-05-02 18:30 neo_o 阅读(8914) 评论(0) 推荐(0)
摘要:function getCountDays(ym) { var curDate = new Date(ym); /* 获取当前月份 */ var curMonth = curDate.getMonth(); /* 生成实际的月份: 由于curMonth会比实际月份小1, 故需加1 */ curDat 阅读全文
posted @ 2018-05-02 18:16 neo_o 阅读(3706) 评论(0) 推荐(0)
摘要:1.安装axios依赖包 npm install axios --save 2.新建js文件,命名js.js。 项目目录: axios.interceptors.request.use(function (config) { config.headers['Content-Type'] = 'app 阅读全文
posted @ 2018-05-02 18:06 neo_o

愿你的生活只有诗和远方