11 2020 档案

摘要://下面是导入app.vue import app from './vue/app.vue' new Vue({ el:'#app', // tempalte会完全替换掉id为app的div里面的内容,所以使用了<app/> template:'<app/>', components:{ app } 阅读全文
posted @ 2020-11-30 11:20 zeal666 阅读(259) 评论(0) 推荐(0) 编辑
摘要:问题:引用的css和js都是静态的,所以会出现引用错误,把css样式和js文件放到静态资源下就可以解决问题,注意静态资源的文件夹的名称必须要写成static,不然不能识别 阅读全文
posted @ 2020-11-27 10:47 zeal666 阅读(372) 评论(0) 推荐(0) 编辑
摘要:在script中type设置为module是,在本地打开时会报错 原因:HTML使用type=‘module’会默认产生跨域请求,我们在本地打开时,file协议并不支持 跨域请求仅支持协议方案:http,data,chrome,chrome扩展,https。 解决方案:vscodo下载Live Se 阅读全文
posted @ 2020-11-27 10:43 zeal666 阅读(754) 评论(0) 推荐(0) 编辑
摘要:<template id="app1"> <div> <h2>{{acount}}</h2> <button @click="add">+</button> <button @click="sub" v-bind:disabled='acount<=1'>-</button> </div> </te 阅读全文
posted @ 2020-11-26 17:18 zeal666 阅读(101) 评论(0) 推荐(0) 编辑
摘要:body> <div id="app"> <!-- v-bid --> <cpn1 v-bind:cinfor="info"></cpn1> </div> <template id="app1"> <div> <h2>{{cinfor}}</h2> </div> </template> <scrip 阅读全文
posted @ 2020-11-26 11:27 zeal666 阅读(199) 评论(0) 推荐(0) 编辑
摘要:已知函数 fn 执行需要 3 个参数。请实现函数 partial,调用之后满足如下条件:1、返回一个函数 result,该函数接受一个参数2、执行 result(str3) ,返回的结果与 fn(str1, str2, str3) 一致 输入: var sayIt = function(greeti 阅读全文
posted @ 2020-11-21 12:14 zeal666 阅读(288) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示