vue3学习笔记4——JS操作DOM vue3学习笔记4——JS操作DOM 2023-08-24 Cooper Zhu technology vue3 see:https://github.com/hi-cooper/vue-learning.git 1 方法 1)声明ref变量refContainer; 2)DOM元素添加ref属性,值指向refContainer 3)使用refContainer.value即可操作DOM元素 <template> <!-- DOM元素添加"ref&
vue3学习笔记2——第一个vue应用 vue3学习笔记2——第一个vue应用 2023-08-21 Cooper Zhu technology vue3 git: https://github.com/hi-cooper/vue-learning.git 1 第一个vue应用 前提:已安装NodeJs (https://nodejs.org) npm init vue@latest cd vue-learning npm install npm run format
vue3学习笔记1——基本知识 vue3学习笔记1——基本知识 2023-08-12 Cooper Zhu technology vue3 see: https://cn.vuejs.org/ 1 文件结构 以.vue结尾,文件结构 <script> // JS代码 </script> <template> <!-- HTML代码 -->
Git 高级用法 Git 高级用法 2023-08-07 Cooper Zhu technology git 1 大仓库拉取 # 1. 浅克隆:即只克隆最后一条commit记录 git clone --depth=1 <repository_name> # 2. 浅克隆:拉取并merge最后1000条commit记录 git pull --depth=1000 # 3. 从浅克隆恢复到完整克隆 git config remote.