摘要: if(event && event.stopPropagation){ event.stopPropagation(); // w3c 标准 }else{ event.cancelBubble = true; // ie 678 IE浏览器 } vue阻止冒泡 <button @click=test 阅读全文
posted @ 2019-08-13 11:30 king_94boy 阅读(2933) 评论(0) 推荐(0)
摘要: <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /> <meta content="yes" name="apple-mobile-w 阅读全文
posted @ 2019-08-13 10:30 king_94boy 阅读(142) 评论(0) 推荐(0)
摘要: 在html页面中 使用冒号隔开 在管道页面 变量名 逗号隔开 阅读全文
posted @ 2019-07-04 21:00 king_94boy 阅读(3432) 评论(0) 推荐(0)
摘要: 之后再调样式等 阅读全文
posted @ 2019-07-01 16:07 king_94boy 阅读(1837) 评论(0) 推荐(0)
摘要: @Input() 在 B组件的TS文件中定义 这样就可以A B组件传值 @Output() 在B组件中定义 并且在A组件TS文件中定义事件 阅读全文
posted @ 2019-06-19 17:12 king_94boy 阅读(2736) 评论(0) 推荐(0)
摘要: angular6 想要监听页面某些事件 如 点击 window宽高 使用 @HostListener('click', ['$event.target'])onClick(btn) { console.log( btn);} 待续。 阅读全文
posted @ 2019-06-06 20:36 king_94boy 阅读(1113) 评论(0) 推荐(0)
摘要: 1、cd 到你要添加的项目文件夹中 2、使用命令 git init 注:将你的目录管理成git仓库 就是初始化git 3、使用命令 git add . (注意一定要加点哦) 注:将你的文件添加到git库中 4、使用命令 git commit -m '你的备注文件' 注:将你的文件提交到git仓库中, 阅读全文
posted @ 2019-05-31 14:27 king_94boy 阅读(5220) 评论(0) 推荐(0)
摘要: 准备工作: node + npm + vue-cli 确保node安装成功 1、终端查询一下 node -v 2、使用命令全局安装vue-cli npm install -g vue-cli 3、使用命令创建项目 vue init webpack basics(项目名称) $ vue init we 阅读全文
posted @ 2019-04-24 09:55 king_94boy 阅读(1130) 评论(0) 推荐(0)
摘要: 1、容器和网格系统 容器 container 固定宽度,不同尺寸固定了不同的宽度 container-fluid 100%宽度 栅格系统 cal-xs//<768px cal-sm //>=768px cal-md //>=992px cal-lg //>=1200px 2、字体颜色及背景颜色字体 阅读全文
posted @ 2019-04-04 12:01 king_94boy 阅读(11000) 评论(0) 推荐(1)
摘要: <html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" language=JavaScript> document.onkeyd 阅读全文
posted @ 2019-01-17 11:50 king_94boy 阅读(766) 评论(0) 推荐(0)