会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
仇大xai
博客园
首页
新随笔
联系
管理
订阅
2022年6月14日
Mac pro 安装node zsh: bad CPU type in executable: node
摘要: 问题 zsh: bad CPU type in executable: node 解决:打开终端,执行以下命令 /usr/sbin/softwareupdate --install-rosetta --agree-to-license
阅读全文
posted @ 2022-06-14 14:07 一块一
阅读(2215)
评论(0)
推荐(0)
2020年3月6日
修改meta标签
摘要: 只这个好使document.querySelector('meta[name="keywords"]').setAttribute('content',"aa"); document.querySelector('meta[name="description"]').setAttribute('co
阅读全文
posted @ 2020-03-06 16:28 一块一
阅读(548)
评论(0)
推荐(0)
$.Deferred 使用 (支持jQuery1.5版本以上)
摘要: { let wait2 = function (deferred, type = true) { setTimeout(() => { if (type) { deferred.resolve({ success: true, data: 1 }) } else { deferred.reject(
阅读全文
posted @ 2020-03-06 13:51 一块一
阅读(406)
评论(0)
推荐(0)
2019年11月8日
error: Unexpected console statement (no-console) 解决办法
摘要: 解决方法:修改package.json中的eslintConfig:{} 中的 “rules”:{},增加一行代码: "no-console":"off" 保存后 npm install 或者直接使用: window.console.log("。。。") window.console.log("。。
阅读全文
posted @ 2019-11-08 15:50 一块一
阅读(16517)
评论(1)
推荐(2)
2019年6月16日
vue 监听路由变化
摘要: 一、 二、 三、通过 vue-router 的钩子函数 beforeRouteEnter beforeRouteUpdate beforeRouteLeave 转自:https://blog.csdn.net/wandoumm/article/details/80167642
阅读全文
posted @ 2019-06-16 20:27 一块一
阅读(3530)
评论(0)
推荐(0)
2019年6月13日
vue:过滤器---时间戳格式转化
摘要: 添加过滤器: 二、
阅读全文
posted @ 2019-06-13 17:47 一块一
阅读(1641)
评论(1)
推荐(1)
vue 动态路由传参
摘要: 需要对应路由配置如下: 路由配置: 对应路由配置:
阅读全文
posted @ 2019-06-13 17:43 一块一
阅读(12447)
评论(0)
推荐(0)
2019年5月24日
node的版本控制之nvm的命令
摘要: 安装和使切换nodejs的几个简单的命令使用:
阅读全文
posted @ 2019-05-24 14:50 一块一
阅读(558)
评论(0)
推荐(0)
2019年5月21日
gulpfile.js 文件配置
摘要: 配置前 :安装所有插件
阅读全文
posted @ 2019-05-21 10:58 一块一
阅读(1299)
评论(0)
推荐(0)
2019年5月15日
for(var i in items) 和 for(var i;i<items.length;i++) 区别
摘要: 前者循环的是属性,后者循环的才是数组。 若项目中对数组属性进行了扩展,那切记不能使用前者,否则在循环数组时扩展的函数体也会被当做数据返回。 var data = { p1:1, p2:"b" }; for (var i in data){ alert(eval("data." + i)); } fo
阅读全文
posted @ 2019-05-15 10:42 一块一
阅读(677)
评论(0)
推荐(0)
下一页
公告