Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>udoc</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[{"children":[],"level":2,"lvNumber":"1.1","text":"common.js"}],"level":1,"lvNumber":"1","text":"u-vue-doc"},{"children":[],"level":1,"lvNumber":"2","text":"hexo"},{"children":[],"level":1,"lvNumber":"3","text":"u-npm-doc"},{"children":[],"level":1,"lvNumber":"4","text":"udoc auto association 自动关联"},{"children":[],"level":1,"lvNumber":"5","text":"udoc wget"}],"level":0,"lvNumber":"","text":"udoc"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#000080;} .s4{color:#000000;} .s5{color:#458383;} .s6{color:#660e7a;} .s7{color:#7a7a43;} .s8{color:#008000;} .s9{color:#0000ff;} .s10{color:#808080;} .s11{color:#c80000;} .s12{color:#000000;} .s13{color:#000000;} .s14{color:#0000ff;} .s15{color:#0000ff;} .s16{color:#000000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>udoc</a></li> <li> <a href='#ol_1' >u-vue-doc</a></li> <li> <a href='#ol_2' >common.js</a></li> <li> <a href='#ol_3' >hexo</a></li> <li> <a href='#ol_4' >u-npm-doc</a></li> <li> <a href='#ol_5' >udoc auto association 自动关联</a></li> <li> <a href='#ol_6' >udoc wget</a></li> </div>

<pre id='ol_0' class='title'>udoc</pre> <pre><d class='s0'><a href='http://192.168.0.121:83/mdn/'>http://192.168.0.121:83/mdn/</a></d></pre> <pre><d class='s0'>更多见书签</d></pre> <pre><d class='s0'></d></pre> <t id='fef0c46e-61d7-43cb-90e6-2075fe749ec6'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_1'>u-vue-doc</h1> <pre><d class='s1'><a href='..\vue/vue-doc.html'>vue-doc </a></d></pre> <pre><d class='s0'></d></pre> <h2 id='ol_2'>common.js</h2> <pre><d class='s2'>动态host切换 $r -> a.vue.my</d><d class='s0'></d></pre> <pre><d class='s3'>function </d><d class='s4'>prefixHost() {</d></pre> <pre><d class='s4'> </d><d class='s3'>var </d><d class='s5'>body </d><d class='s4'>= </d><d class='s6'>document</d><d class='s4'>.</d><d class='s7'>querySelector</d><d class='s4'>(</d><d class='s8'>"#main > div.content"</d><d class='s4'>)</d></pre> <pre><d class='s4'> </d><d class='s3'>var </d><d class='s5'>arr </d><d class='s4'>= </d><d class='s6'>Array</d><d class='s4'>.</d><d class='s7'>from</d><d class='s4'>(</d><d class='s5'>body</d><d class='s4'>.</d><d class='s7'>querySelectorAll</d><d class='s4'>(</d><d class='s8'>"a"</d><d class='s4'>));</d></pre> <pre><d class='s4'> </d><d class='s5'>arr</d><d class='s4'>.</d><d class='s7'>forEach</d><d class='s4'>((item, index) => {</d></pre> <pre><d class='s4'> </d><d class='s3'>var </d><d class='s5'>href </d><d class='s4'>= item.</d><d class='s7'>getAttribute</d><d class='s4'>(</d><d class='s8'>"href"</d><d class='s4'>);</d></pre> <pre><d class='s4'> </d><d class='s3'>if </d><d class='s4'>(</d><d class='s5'>href</d><d class='s4'>.</d><d class='s7'>startsWith</d><d class='s4'>(</d><d class='s8'>"$r/"</d><d class='s4'>)) {</d></pre> <pre><d class='s4'> item.href = </d><d class='s8'>"<a href='http://a.vue.my/'>http://a.vue.my/</a>" </d><d class='s4'>+ </d><d class='s5'>href</d><d class='s4'>.</d><d class='s7'>substr</d><d class='s4'>(</d><d class='s9'>3</d><d class='s4'>, </d><d class='s5'>href</d><d class='s4'>.length - </d><d class='s9'>3</d><d class='s4'>);</d></pre> <pre><d class='s4'> item.target = </d><d class='s8'>"_blank"</d><d class='s4'>;</d></pre> <pre><d class='s4'> }</d></pre> <pre><d class='s4'> </d><d class='s10'>// console.log(item.text, item.href, item.getAttribute("href"));</d></pre> <pre><d class='s10'> </d><d class='s4'>});</d></pre> <pre><d class='s4'>}</d></pre> <pre><d class='s4'>prefixHost();</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s11'>v-on 可以同时绑定 原生事件 & 自定义事件</d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>可以绑定一个表达式作为 callback,或者一个 method</d></pre> <pre><d class='s0'> <!-- <text-doc v-bind:title="doc.title" v-on:update:title="doc.title = $event"></text-doc> --></d></pre> <pre><d class='s0'> <text-doc v-bind:title="doc.title" v-on:update:title=</d><d class='s12'>"onChange"></text-doc></d></pre> <pre><d class='s12'></d></pre> <pre><d class='s13'>直接用 下面生成,不用 npm run build,否则会下载最新等各种操作</d></pre> <pre><d class='s13'>npx hexo clean && npx hexo generate</d><d class='s12'></d></pre> <pre><d class='s12'></d></pre> <pre><d class='s12'>启动文档:</d></pre> <pre><d class='s12'>npm run start</d></pre> <pre><d class='s12'></d></pre> <pre><d class='s9'>[demo]</d><d class='s4'>($r/components-custom-events.html)</d></pre> <pre><d class='s12'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>md 无法引用js,</d></pre> <pre><d class='s1'>加入一个链接,会作为框架的一部分显示;需要作为一个单独的页面展示。 -- 需要放在生成目录下,放在src目录下会进入hexo的编译流程</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>X:\vue\cn.vuejs.org\themes\vue\source\js</d></pre> <pre><d class='s1'>source_dir: src -- 这个下面的文件会被处理,如果是静态资源,放public下。</d></pre> <pre><d class='s1'>public_dir: public</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>v-model 语法糖的解释</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'><a href='http://a.vue.my/forms.html'>http://a.vue.my/forms.html</a> 反向引用查找</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>自动 open 编辑器</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_3'>hexo</h1> <pre><d class='s1'>config: _config.yml</d></pre> <pre><d class='s1'>缓存数据:db.json</d></pre> <pre><d class='s1'></d></pre> </t> <pre><d class='s14'></d></pre> <t id='5cdc5ff2-f4a0-4399-ba8d-03491bb84c54'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_4'>u-npm-doc</h1> <pre><d class='s1'><a href='..\nodejs/npm-docs.html'>npm-docs </a></d></pre> <pre><d class='s1'><a href='..\nodejs/npm.html#81b35c07-6036-4bb8-871b-83c2bb377630'>nodejs npm source code </a></d></pre> <pre><d class='s15'></d></pre> </t> <pre><d class='s14'></d></pre> <t id='de75d57a-a091-406d-84f5-44bc4105a8a0'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_5'>udoc auto association 自动关联</h1> <pre><d class='s16'>fh 中以一定的格式写(按照大纲),自动将注解和demo注入到文档</d><d class='s1'></d></pre> </t> <pre><d class='s14'></d></pre> <t id='d1b516d9-e9e0-4faa-a351-14c80a48e9f0'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_6'>udoc wget</h1> <pre><d class='s1'><a href='..\js/js.html#64431d87-e15e-4e0c-8ab1-fe44480b2cd2'>E:\ebook\JavaScript\mdn.tar.gz </a></d></pre> <pre><d class='s1'><a href='..\php/php.html#0414ae2b-e56d-4029-994c-622242f08afa'>php ref/doc/official </a></d></pre> <pre><d class='s14'></d></pre> </t> </d></pre> </body></html>

testing

work_log

点赞(0) 阅读(95) 举报
目录
标题