上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: function unique(arr) { return arr.reduce((prev, cur) => prev.includes(cur) ? prev : [...prev, cur], []); } function unique2(arr) { var result = []; fo 阅读全文
posted @ 2019-08-01 13:30 jiaqiq 阅读(159) 评论(0) 推荐(0)
摘要: 1. const o = {}; // 创建一个空对象。 2. o.__proto__ = F.prototype; // 让o对象的__proto__指向函数的原型prototype。 3. F.call(o); // this指向o对象。 4. a = o; // 将o对象赋给a对象。 new 阅读全文
posted @ 2019-08-01 10:04 jiaqiq 阅读(123) 评论(0) 推荐(0)
摘要: 例: fn(8)40320 阅读全文
posted @ 2019-07-31 21:41 jiaqiq 阅读(158) 评论(0) 推荐(0)
摘要: 例:var str = '12345678'; str.replace(/(\d{3})\d{2}(\d{3})/, '$1**$2'); 效果:123**678; private get tuominComp() { return (mobileNo: any) => { return mobil 阅读全文
posted @ 2019-07-22 16:21 jiaqiq 阅读(646) 评论(0) 推荐(0)
摘要: 相关参考:https://www.cnblogs.com/renbo/p/9563050.html 阅读全文
posted @ 2019-07-15 15:30 jiaqiq 阅读(145) 评论(0) 推荐(0)
摘要: 一.live-server 搭建临时的服务修改文件浏览器自动刷新自动打开项目 1.安装 2.运行 文件根目录运行live-server 以下安装运行类似: 二.http-server 三.anywhere 阅读全文
posted @ 2019-04-19 10:57 jiaqiq 阅读(347) 评论(0) 推荐(0)
摘要: 1.weinre基于nodejs,因此首先要安装nodejs,然后使用npm进行安装: npm -g install weinre 2.运行 weinre --httpPort 8081 --boundHost -all- 3.获取本机的IP地址,例如:192.168.1.101,添加如下js文件到 阅读全文
posted @ 2019-04-17 09:50 jiaqiq 阅读(332) 评论(0) 推荐(0)
摘要: 图片来源: 互联网 阅读全文
posted @ 2019-04-01 09:57 jiaqiq 阅读(111) 评论(0) 推荐(0)
摘要: 1.首先目录结构大致如下: 2.mutation-type.js 3.index.js 4.modules下的js文件 5.组件中使用 用于兄弟组件事件通信和传参(载荷) 此处对象监听用deep: true 阅读全文
posted @ 2019-03-06 18:01 jiaqiq 阅读(136) 评论(0) 推荐(0)
摘要: 一直忘,特此记下大致思路。 exportTable () { const origin = window.location.origin; const id = this.$route.params.id; window.open(`${origin}/pyxis-dict/api/dict/dow 阅读全文
posted @ 2018-12-25 18:02 jiaqiq 阅读(1163) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页