随笔分类 - vue2.x
摘要:Cannot read property 'replace' of undefined" JS替换空格回车换行符 指令和过滤器函数 如题。我想在v html后面使用一个过滤器,代码如下: 但是我发现在Vue2中不能用了,只能在{{}}中过滤,但是{{}}又不能绑定html keep alive ht
阅读全文
摘要:```
components:{ }//为一对象 header、footer作为组件名会报错: [Vue warn]: Do not use built-in or reserved HTML elements as component id: Header. ```
阅读全文
摘要:https://segmentfault.com/q/1010000004904525/a 1020000004904920
阅读全文
摘要:```
console.log(this.$route); var user = sessionStorage.getItem('user'); console.log(this.$router);
```
阅读全文
摘要:http://blog.csdn.net/fdipzone/article/details/46390573/
阅读全文
摘要:对象解构 http://www.jb51.net/article/70140.htm
阅读全文
摘要:```
/**
* 几乎所有语言中||和&&都遵循“短路”原理,
* 如&&中第一个表达式为假就不会去处理第二个表达式,而||正好相反。
* js也遵循上述原则。
* 当||时,找到为true的分项就停止处理,并返回该分项的值,否则执行完,并返回最后分项的值。
* 当&&时,找到为false的分项就停止处理,并返回该分项的值。
**/
// var a = "" || null || 3 || 4...
阅读全文
摘要:```
vuerouter import from 里的@/xxxx 是什么意思 这是webpack的路径别名 resolve: { // 自动补全的扩展名 extensions: ['.js', '.vue', '.json'], // 默认路径代理 // 例如 import Vue from 'vue',会自动到 'vue/dist/vue.common....
阅读全文
摘要:http://cnodejs.org/topic/4f9904f9407edba21468f31e weui http://weixin.yoby123.cn/weui/ http详解 http://www.cnblogs.com/TankXiao/archive/2012/02/13/234267
阅读全文

浙公网安备 33010602011771号