摘要: 1.父传子 onlyContent: { type: Boolean, default: false } onlyContent: { type: Boolean, default: false } <template> <div> 父组件: <input type="text" v-model=" 阅读全文
posted @ 2019-01-23 14:23 炽橙子 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1. 页面前进后退 // 在浏览器记录中前进一步,等同于 history.forward()router.go(1) // 后退一步记录,等同于 history.back()router.go(-1) // 前进 3 步记录router.go(3) // 如果 history 记录不够用,那就默默地 阅读全文
posted @ 2019-01-22 14:39 炽橙子 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: 1.参考:https://segmentfault.com/a/1190000008010666?utm_source=tag-newest export default { data(){ }, //组件实例刚被创建,组件属性计算之前,如data属性等 beforeCreate(){ }, // 阅读全文
posted @ 2019-01-22 11:08 炽橙子 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 2.获取自定义属性的值 3. 阅读全文
posted @ 2019-01-21 17:51 炽橙子 阅读(4943) 评论(0) 推荐(0) 编辑
摘要: 连接linux服务器的软件 MobaXterm Xshell 1.关机 (系统的关机、重启以及登出 ) shutdown -h now 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours:minutes & 按预定时间关闭系统 shu 阅读全文
posted @ 2019-01-17 11:01 炽橙子 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-01-16 14:37 炽橙子 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1.vue绑定属性,点击事件 1.<!-- 完整语法 --> <a v-bind:href="url">...</a> <!-- 缩写 --> <a :href="url">...</a> 2.<!-- 完整语法 --> <a v-on:click="doSomething">...</a> <!- 阅读全文
posted @ 2019-01-03 14:35 炽橙子 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1.字体大小(都用双数) 36px 30px 24px 22px (28px,26px 少用) 2.字体颜色 #999 #666 #333 3.灰色背景 #eee 4.左右边框 24px或20px 5.字体 默认 微软雅黑 安桌 是 思源黑体 6.手机常用尺寸 底部导航条:98px 登录按钮:88p 阅读全文
posted @ 2019-01-02 15:41 炽橙子 阅读(501) 评论(0) 推荐(0) 编辑
摘要: *path.resolve()或者paht.resolve('') 输出:当前文件所在文件夹路径 __dirname 注:“__dirname”是node.js中的一个全局变量,它指向当前执行脚本所在的目录。 const 声明常量,let局部变量,最好不用var 有module.exports 不能 阅读全文
posted @ 2018-12-18 09:33 炽橙子 阅读(5017) 评论(0) 推荐(0) 编辑
摘要: 1.<text>七 /n 月</text> 只有被text标签包含的文字在手机端才能长按选中。/n会解析成换行 2.以iphone6为基本进行图片设置 3.在页面上的Style 样式,用动态样式(根据传参方便修改) overflow: hidden; white-space: nowrap; ove 阅读全文
posted @ 2018-11-21 14:18 炽橙子 阅读(340) 评论(0) 推荐(0) 编辑