上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 133 下一页
摘要: ![](https://img2023.cnblogs.com/blog/1202393/202303/1202393-20230310131850462-1575642391.png) ![](https://img2023.cnblogs.com/blog/1202393/202303/1202393-20230310131912866-1904482811.png) ![](https:// 阅读全文
posted @ 2023-03-10 13:19 盘思动 阅读(162) 评论(0) 推荐(0)
摘要: 1.定义一个响应式数据 2.ref获取元素 2.1 获取子组件值 App.vue <template> <div> <!-- 不知什么原因:@click一开始怎么都没法触发点击事件 --> <button @click="show()">click-button {{count}}</button> 阅读全文
posted @ 2023-03-10 10:47 盘思动 阅读(83) 评论(0) 推荐(0)
摘要: 在这个例子中,父组件引用了 MyComponent 组件,并通过 props 传递了一个字符串作为 message 属性的值。 在 MyComponent 组件中,我们可以通过 props 参数来获取这个值,并在 setup 函数中进行处理。 阅读全文
posted @ 2023-03-10 10:39 盘思动 阅读(501) 评论(0) 推荐(0)
摘要: pinia和vuex的区别(可做面试题) 1.pinia没有mutations,只有state,getters,actions 2.pinia分模块不需要modules (之前vuex分模块需要modules) 3.pinia体积更小(性能更好) 4.pinia可以直接修改state数据 官网文档 阅读全文
posted @ 2023-03-10 09:19 盘思动 阅读(213) 评论(0) 推荐(0)
摘要: 官网手册 https://router.vuejs.org/zh/introduction.html 第一次看2023-03-10: 进阶部分,也都是常用的章节,进阶部分难度并不大; 基础章节:难度还是有的,因都非单页面操作,因而显得抽象 api模块很多关键词应用 https://router.vu 阅读全文
posted @ 2023-03-10 08:56 盘思动 阅读(21) 评论(0) 推荐(0)
摘要: ts中用 instanceof 来判断 对象是否是指定的类型 class Person{ } var obj = new Person() var isPerson = obj instanceof Person; console.log("obj 对象是 Person 类实例化来的吗? " + i 阅读全文
posted @ 2023-03-08 09:48 盘思动 阅读(23) 评论(0) 推荐(0)
摘要: https://www.runoob.com/typescript/ts-interface.html 阅读全文
posted @ 2023-03-08 09:33 盘思动 阅读(19) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1202393/202303/1202393-20230307234140328-1211959229.png) ![](https://img2023.cnblogs.com/blog/1202393/202303/1202393-20230308090843122-634260470.png) ![](https://i 阅读全文
posted @ 2023-03-07 23:42 盘思动 阅读(30) 评论(0) 推荐(0)
摘要: 安卓下载 exportPDF(url) { // url 未pdf,word文件可以打开的链接 const a = document.createElement("a"); a.href = url; a.target="_blank"; a.download = "download"; a.cli 阅读全文
posted @ 2023-03-07 11:01 盘思动 阅读(181) 评论(0) 推荐(0)
摘要: 手册 https://cn.vitejs.dev/guide/ Vue3 +Vite + Pinia + 实战项目 + typescript. nice https://study.163.com/course/courseMain.htm?courseId=1212917803 原始网站9.9元, 阅读全文
posted @ 2023-02-27 17:57 盘思动 阅读(19) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 133 下一页