01 2021 档案

摘要:导出代码:this.$http.get(`url`,null) .then(response => { // console.log(response); if (!response) { return } let url = window.URL.createObjectURL(new Blob( 阅读全文
posted @ 2021-01-18 14:26 敲敲碰碰 阅读(362) 评论(0) 推荐(1)
摘要:subString(7,3),参数以较大的为截取结尾索引,当前截取的字符串为(3-7),当参数为负数时,负数参数默认为0; slice参数如果为负数则从字符串后面截取;如果开始索引大于结束索引则返回空字符串, subStr不支持负数,如果是负数则返回空字符串,第二个参数为获取的个数。 阅读全文
posted @ 2021-01-13 12:44 敲敲碰碰 阅读(81) 评论(0) 推荐(0)
摘要:1.匿名插槽 //parent <helloWorld> 插槽使用 </helloWorld> //child <template> <div> <!-- 显示插槽内容:“插槽使用” --> <slot></slot> </div> </template> 2.具名插槽 给slot添加name属性。 阅读全文
posted @ 2021-01-03 10:39 敲敲碰碰 阅读(102) 评论(0) 推荐(0)
摘要:一,父到子 1.属性props。 //child props:{msg:String} //parent <HelloWrold :Msg="welcome to Your Vue.js App"></HelloWorld> 2.引用$ref。 <HelloWorld ref="HW"/> this 阅读全文
posted @ 2021-01-03 10:22 敲敲碰碰 阅读(167) 评论(0) 推荐(0)