上一页 1 2 3 4 5 6 7 8 ··· 18 下一页

2021年3月15日

摘要: 1.进入一个目录,创建项目 对应命令: vue create project-one 2.我们这里选择手动配置 按 ↓ 选择“Manually select features”,再按 Enter 3.选择你需要的配置项 通过↑ ↓ 箭头选择你要配置的项,按 空格 是选中,按 a 是全选,按 i 是反 阅读全文
posted @ 2021-03-15 02:36 0C° 阅读(197) 评论(0) 推荐(0) 编辑

2021年3月14日

摘要: 解决: 删除C:\Users{你的用户文件夹}/目录中的.npmrc文件,如下 在这个位置!我的已经删了 阅读全文
posted @ 2021-03-14 20:01 0C° 阅读(4196) 评论(1) 推荐(1) 编辑

2021年3月12日

摘要: vue的生命周期是vue中的一个重点难点。同时也是面试的一个必考点 vue有10个生命周期。分别是beforecreate、created、beforemount、mounted、beforeupdate、update、activated、deactivated、beforedestroy、dest 阅读全文
posted @ 2021-03-12 11:57 0C° 阅读(240) 评论(0) 推荐(0) 编辑
 
摘要: computer是计算属性,且属性值具有缓存性。同时,computer还依赖于其他属性的计算值,当计算值发生变化时返回内容。当需要依赖于其他属性的计算值的变化来动态获取值的时候使用computer watch只要监听到值发生变化就会执行回调,同时在回调过程中执行一些逻辑操作。当我们需要执行复杂的逻辑 阅读全文
posted @ 2021-03-12 11:03 0C° 阅读(1071) 评论(0) 推荐(0) 编辑

2021年3月11日

摘要: ajax请求可以在created以及mounted中。但是,当请求在created中时,此时视图中的dom没有被渲染出来,拿不到真实的dom;而在mounted中,此时dom已经渲染出来了,所以可以直接操作dom。 注意:在服务端渲染不支持mounted,所以在服务端渲染的情况下统一使用create 阅读全文
posted @ 2021-03-11 16:23 0C° 阅读(761) 评论(0) 推荐(0) 编辑
 
摘要: 首先先展示结构代码 <style> .father { width: 500px; height: 500px; background-color: red; } .child { width: 100px; height: 100px; background-color: #000; }</sty 阅读全文
posted @ 2021-03-11 16:21 0C° 阅读(242) 评论(0) 推荐(0) 编辑

2021年3月10日

摘要: 在vue中,使用watch来响应数据的变化。watch的用法大致有三种。下面代码是watch的一种简单的用法: <input type="text" v-model="cityName"/> new Vue({ el: '#root', data: { cityName: 'shanghai' }, 阅读全文
posted @ 2021-03-10 20:58 0C° 阅读(145) 评论(0) 推荐(0) 编辑

2021年3月7日

摘要: 源码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content 阅读全文
posted @ 2021-03-07 01:56 0C° 阅读(149) 评论(0) 推荐(0) 编辑

2021年3月5日

摘要: <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-- 阅读全文
posted @ 2021-03-05 00:01 0C° 阅读(147) 评论(0) 推荐(0) 编辑

2020年8月9日

摘要: 第一种PC端公共样式: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del 阅读全文
posted @ 2020-08-09 18:45 0C° 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页