随笔分类 -  ECMAScript

摘要:把依赖从 windows 拷贝到 linux 上(没有使用 npm install 下载依赖),执行构建时会发生错误。 这时需要执行 npm rebuild 重构一下依赖。 https://docs.npmjs.com/cli/rebuild 切换 node 版本时最好也执行一遍 阅读全文
posted @ 2020-05-26 14:32 江湖小小白 阅读(7026) 评论(0) 推荐(1) 编辑
摘要:node 下载:https://nodejs.org/zh-cn/download & https://registry.npmmirror.com/binary.html?path=node/ npm 设置淘宝镜像源 # 安装时临时指定代理 npm --registry=https://regis 阅读全文
posted @ 2020-04-01 19:48 江湖小小白 阅读(2086) 评论(0) 推荐(0) 编辑
摘要:由于 select 没有选中事件(onchange 事件在内容改变时才会触发,选择同一个条目不会触发),只好用其他控件来实现。 <!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>Select</title> < 阅读全文
posted @ 2019-05-23 18:40 江湖小小白 阅读(7896) 评论(0) 推荐(0) 编辑
摘要:要导出的数据:https://examples.bootstrap-table.com/json/data1.json?order=asc 使用的插件(注意插件版本依赖):tableExport.jquery.plugin 代码 <!DOCTYPE html> <html lang="en"> <h 阅读全文
posted @ 2019-04-29 14:51 江湖小小白 阅读(22556) 评论(5) 推荐(1) 编辑
摘要:要加载的数据:https://examples.wenzhixin.net.cn/examples/bootstrap_table/data?search=&order=asc&offset=0&limit=10 代码 <!DOCTYPE html> <html lang="zh"> <head> 阅读全文
posted @ 2019-04-28 17:20 江湖小小白 阅读(11195) 评论(0) 推荐(0) 编辑
摘要:js、css 等静态资源可以放在自己的服务器上,或者引用网络上的公共库使用(CDN) CDN 读取失败时从本地加载 <script src="https://code.jquery.com/jquery-3.4.0.min.js"></script> <script> if (!window.jQu 阅读全文
posted @ 2019-04-28 14:52 江湖小小白 阅读(4104) 评论(0) 推荐(0) 编辑
摘要:下载 Visual Studio Code https://code.visualstudio.com 下载慢:将下载地址中的 az764295.vo.msecnd.net 替换为 vscode.cdn.azure.cn 也可以安装 VS Code Web 版本 # vscode 配置目录 mkdi 阅读全文
posted @ 2019-04-13 23:50 江湖小小白 阅读(782) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示