会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
打赏
web前端开发技术
仰望星空,脚踏实地
首页
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
88
下一页
2020年8月1日
webpack 4版本以上 并行编译 thread-loader
摘要: webpack 4版本以上并行编译使用的loader是:thread-loaderloader 参考: https://cli.vuejs.org/zh/config/#parallel 参考:https://www.webpackjs.com/loaders/thread-loader/ 原理:创
阅读全文
posted @ 2020-08-01 21:14 孟繁贵
阅读(3246)
评论(0)
推荐(0)
2020年7月28日
json格式数据下载
摘要: 2种可以下载json数据的示例代码: function download (url, name) { const a = document.createElement('a') a.download = name a.rel = 'noopener' a.href = url // 触发模拟点击 /
阅读全文
posted @ 2020-07-28 17:16 孟繁贵
阅读(5496)
评论(0)
推荐(0)
npm 并行执行 concurrently
摘要: 1、concurrently https://developer.aliyun.com/mirror/npm/package/concurrently 2、示例 "start": "concurrently \"command1 arg\" \"command2 arg\"" command1 和
阅读全文
posted @ 2020-07-28 16:43 孟繁贵
阅读(1084)
评论(0)
推荐(0)
2020年7月26日
WebAssembly assemblyscript
摘要: 1、assemblyscript 将ts编译为webassembly。使得前端更容易上手wasm。 https://github.com/AssemblyScript/assemblyscript 2、awesome-wasm webassembly社区: https://github.com/mb
阅读全文
posted @ 2020-07-26 21:18 孟繁贵
阅读(276)
评论(0)
推荐(0)
2020年7月22日
npm outdated npm prune
摘要: 1、npm prune npm会比较package.json和node_modules目录,然后把那些在package.json中没有引用到的package列出来。并且删除无用的包。 2、npm outdated 检查npm上的注册信息,看你当前项目中有哪些依赖已经过时了,并以列表的形式展示出来。
阅读全文
posted @ 2020-07-22 16:14 孟繁贵
阅读(616)
评论(0)
推荐(0)
require import 引入区别
摘要: 1、require引入 //require.jslet a = 0; const count = () => { ++a; console.log(a,'==require模块内部函数执行==') } setTimeout(function(){ ++a; console.log(a,'==requ
阅读全文
posted @ 2020-07-22 10:09 孟繁贵
阅读(1044)
评论(0)
推荐(0)
2020年7月9日
微信小程序 WXS
摘要: 1、参考 https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxs/ 2、目的 UI交互逻辑在视图层执行,避免和逻辑层频繁通信。 即有些逻辑在视图层写,减少setData操作。
阅读全文
posted @ 2020-07-09 17:49 孟繁贵
阅读(240)
评论(0)
推荐(0)
vue 长列表优化
摘要: 1、vue-virtual-scroll-list https://github.com/tangbc/vue-virtual-scroll-list 2、Object.freeze 使用Object.freeze冻结对象。
阅读全文
posted @ 2020-07-09 17:43 孟繁贵
阅读(822)
评论(0)
推荐(0)
webpack4 SplitChunks插件 代码拆分
摘要: 1、参考https://www.webpackjs.com/plugins/split-chunks-plugin/ 2、核心概念 webpack将根据以下条件自动拆分代码块: 会被共享的代码块或者 node_mudules 文件夹中的代码块 体积大于30KB的代码块(在gz压缩前) 按需加载代码块
阅读全文
posted @ 2020-07-09 17:33 孟繁贵
阅读(494)
评论(0)
推荐(0)
2020年6月27日
node path api
摘要: path.dirname(): 返回 path 的目录名 path.join():所有给定的 path 片段连接到一起,然后规范化生成的路径 如:const myPath = path.join(__dirname, "..", "bin", "myBin.js"); path.resolve():
阅读全文
posted @ 2020-06-27 11:13 孟繁贵
阅读(142)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
88
下一页
公告
TOP