hexo 域名相关的问题

国内主机需要备案,国外主机不用

github 上面的博客空间属于国外空间,绑定域名可以 不用备案

购买域名

国内域名我选择了阿里云,登陆阿里云网站,直接购买域名就行,不需要买云解析

阅读更多

v-if和v-for不要同时使用

1
2
3
4
5
<ul>
<li v-for="item in list" v-if="item.isActive">{{item}}</li>
// [vue/no-use-v-if-with-v-for]
// The 'undefined' variable inside 'v-for' directive should be replaced with a computed property that returns filtered array instead. You should not mix 'v-for' with 'v-if'.eslint-plugin-vue
</ul>

v-for和v-if不要同时使用,因为v-for的优先级比v-if高,这意味着 v-if 将分别重复运行于每个 v-for 循环中,效率和性能都比较低。

阅读更多