lv1= lv2= type=
devdocs
https://devdocs.io/
Welcome!
DevDocs combines multiple API documentations in a fast, organized, and searchable interface. Here's what you should know before you start:
Open the Preferences to enable more docs and customize the UI.
You don't have to use your mouse - see the list of keyboard shortcuts.
The search supports fuzzy matching (e.g. "bgcp" brings up "background-clip").
To search a specific documentation, type its name (or an abbr.), then Tab.
You can search using your browser's address bar - learn how.
DevDocs works offline, on mobile, and can be installed on Chrome.
For the latest news, follow @DevDocs.
DevDocs is free and open source.
And if you're new to coding, check out freeCodeCamp's open source curriculum.
Happy coding!
lv1= lv2= type=
u-vue-doc
vue-doc
common.js
动态host切换 $r -> a.vue.my
function prefixHost() {
var body = document.querySelector("#main > div.content")
var arr = Array.from(body.querySelectorAll("a"));
arr.forEach((item, index) => {
var href = item.getAttribute("href");
if (href.startsWith("$r/")) {
item.href = "http://a.vue.my/" + href.substr(3, href.length - 3);
item.target = "_blank";
}
// console.log(item.text, item.href, item.getAttribute("href"));
});
}
prefixHost();
v-on 可以同时绑定 原生事件 & 自定义事件
可以绑定一个表达式作为 callback,或者一个 method
<!-- <text-doc v-bind:title="doc.title" v-on:update:title="doc.title = $event"></text-doc> -->
<text-doc v-bind:title="doc.title" v-on:update:title="onChange"></text-doc>
直接用 下面生成,不用 npm run build,否则会下载最新等各种操作
npx hexo clean && npx hexo generate
启动文档:
npm run start
[demo]($r/components-custom-events.html)
md 无法引用js,
加入一个链接,会作为框架的一部分显示;需要作为一个单独的页面展示。 -- 需要放在生成目录下,放在src目录下会进入hexo的编译流程
X:\vue\cn.vuejs.org\themes\vue\source\js
source_dir: src -- 这个下面的文件会被处理,如果是静态资源,放public下。
public_dir: public
v-model 语法糖的解释
http://a.vue.my/forms.html 反向引用查找
自动 open 编辑器
hexo
config: _config.yml
缓存数据:db.json