上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 数组实例的 includes() Array.prototype.includes方法返回一个布尔值,表示某个数组是否包含给定的值,与字符串的includes方法类似。ES2016 引入了该方法。 该方法的第二个参数表示搜索的起始位置,默认为0。如果第二个参数为负数,则表示倒数的位置,如果这时它大于 阅读全文
posted @ 2018-08-14 14:29 xfcao 阅读(5585) 评论(0) 推荐(0) 编辑
摘要: 分页查询: SELECT * FROM Account t1 WHERE ID IN ( SELECT TOP 30 ID FROM ( SELECT TOP 90 ID FROM Account ORDER BY ID ASC ) t ORDER BY t.ID DESC ) ORDER BY t 阅读全文
posted @ 2018-08-07 19:31 xfcao 阅读(122) 评论(0) 推荐(0) 编辑
摘要: nodejs包高效升级插件npm-check-updates 最近想升级npm的包 到npm一搜发现了一个很好的升级工具 npm-check-updates 安装方法 如果是cnpm 重载下zsh或者其他bash 现在可以使用这个轮子了 如果出现这个说明,包都是最新版 如果是其他的 例如 说明有些包 阅读全文
posted @ 2018-08-07 11:33 xfcao 阅读(4875) 评论(0) 推荐(0) 编辑
摘要: password = password.replace(/.{2}(?=(.{2}))/g, '$&-'); //password =E1-0A-DC-39-49-BA-59-AB-BE-56-E0-57-F2-0F-88-3E 元字符 描述 \ 将下一个字符标记符、或一个向后引用、或一个八进制转义 阅读全文
posted @ 2018-07-06 10:41 xfcao 阅读(3088) 评论(0) 推荐(2) 编辑
摘要: 1、<embed width="800" height="600" src="test_pdf.pdf"> </embed> <embed v-show="pdfShow" width="800" height="600" src="../../../public/data/significant. 阅读全文
posted @ 2018-06-28 17:08 xfcao 阅读(4050) 评论(0) 推荐(0) 编辑
摘要: var curr=BD.Currencies.filter(function(p){ var exR= BD.exchangeRates.filter(function(r){return r.To_Currency==p.Code})[0]; return exR||p.Code=="USD";/ 阅读全文
posted @ 2018-06-13 17:07 xfcao 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 经历三天的踩坑,跳坑,相信绝大多数的问题都已经覆盖到了,请仔细按照流程来对照操作及检查。 1.基本依赖环境 2. 基本工具 3.环境配置 3.1 nodejs (需要配置环境变量) 前端必会,跳过。 不会的去这里看傻瓜教程:https://www.jianshu.com/p/03a76b2e7e00 阅读全文
posted @ 2018-05-31 18:35 xfcao 阅读(687) 评论(0) 推荐(0) 编辑
摘要: meta基础知识 H5页面窗口自动调整到设备宽度,并禁止用户缩放页面 忽略将页面中的数字识别为电话号码 忽略Android平台中对邮箱地址的识别 当网站添加到主屏幕快速启动方式,可隐藏地址栏,仅针对ios的safari (new) 将网站添加到主屏幕快速启动方式,仅针对ios的safari顶端状态条 阅读全文
posted @ 2018-05-08 15:40 xfcao 阅读(286) 评论(0) 推荐(0) 编辑
摘要: const arr = [ { name:'tom', age:15 }, { name:'rose', age:17 }, { name:'tom', age:11 }, { name:'rose', age:15 }, { name:'jack', age:18 }, { name:'tom', 阅读全文
posted @ 2018-03-31 10:37 xfcao 阅读(256) 评论(0) 推荐(0) 编辑
摘要: //获取手机验证码 $scope.regInfo = { phone: "15139000000", code: "", text: "发送验证码", }; $scope.second = 0; $scope.currentCode = ""; $scope.creatCode = function 阅读全文
posted @ 2018-03-29 10:30 xfcao 阅读(243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页