2017年8月1日
摘要: http://mint-ui.github.io/docs/#/en2 Mintui 详细地址 基于2.0的安装 npm install mint-ui -S 主要就三行指令 import Mint from 'mint-ui'import 'mint-ui/lib/style.css' Vue.u 阅读全文
posted @ 2017-08-01 17:41 执候 阅读(881) 评论(0) 推荐(0) 编辑
  2017年7月28日
摘要: 1,bootstrap和vue2.0结合使用 vue文件搭建好后,引入jquery和bootstrap 我采用的方式为外部引用 在main.js内部直接导入 用vue-cli直接安装jquery和bootstrap npm install jquery --save 首先在脚手架里面配置,找到web 阅读全文
posted @ 2017-07-28 14:49 执候 阅读(536) 评论(0) 推荐(0) 编辑
  2017年7月14日
摘要: vue 2016年10月份发布2.0版本 安装: 首先安装node和npm 记得配置环境变量 在安装vue npm install vue npm install --global vue-cli 装完之后检查Vue的版本,通过vue -V 或者 vue --version 如果报错可能是你的vue 阅读全文
posted @ 2017-07-14 08:10 执候 阅读(187) 评论(0) 推荐(0) 编辑
  2017年7月13日
摘要: 1. 在每个组件模板,不在支持片段代码 组件中模板: 之前: <template> <h3>我是组件</h3><strong>我是加粗标签</strong> </template> 现在: 必须有根元素,包裹住所有的代码 <template id="aaa"> <div> <h3>我是组件</h3> 阅读全文
posted @ 2017-07-13 09:53 执候 阅读(176) 评论(0) 推荐(0) 编辑
  2017年7月9日
摘要: vue 一片html代码配合上json,在new出来vue实例 Demo:1 数据双向绑定(v-model="message",{{message}}) <div id="box"> <input type='text' v-model="message"> <p>{{message}}</p> < 阅读全文
posted @ 2017-07-09 18:58 执候 阅读(834) 评论(0) 推荐(0) 编辑
  2017年6月7日
摘要: 1。总体架构 1.1自调用匿名函数 //自调用匿名函数 (function(window,undefined){ //jquery code})(window); 1.这是一个自调用匿名函数。第一个括号内创建一个匿名函数,第二个括号,立即执行2。为什么要创建这样一个“自调用匿名函数”呢???通过定义 阅读全文
posted @ 2017-06-07 16:10 执候 阅读(1937) 评论(0) 推荐(0) 编辑
  2017年5月2日
摘要: function ie(){ var agent = navigator.userAgent.toLowerCase();//判断浏览器版本 return (!!window.ActiveXObject || "ActiveXObject" in window) ? ( (agent.match(/ 阅读全文
posted @ 2017-05-02 13:57 执候 阅读(187) 评论(0) 推荐(0) 编辑
  2017年4月18日
摘要: 参考:https://www.cnblogs.com/MuYunyun/p/5933366.html <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title></title></head><body> <script t 阅读全文
posted @ 2017-04-18 17:29 执候 阅读(125) 评论(0) 推荐(0) 编辑
  2017年3月24日
摘要: bug1.position:fixed;z-index:99; 出现了z-index:2的层级跑到他上面了, 为什么?会出现这问题??? 检查: 1你的固定定位的容器是不是被其他容器包裹,你包裹得容器是不是加了层级, <div class="header" style="width:100%;hei 阅读全文
posted @ 2017-03-24 11:18 执候 阅读(174) 评论(0) 推荐(0) 编辑
  2017年3月23日
摘要: 参考图 ’ 实现原理offset().top html部分 直接上js 1,定义变量 var section=$(".section");//对应的区块var arr=[];//创建一个空数组var movetop="0"; //做一个true和false操作var $navBar=$(".navB 阅读全文
posted @ 2017-03-23 18:20 执候 阅读(1967) 评论(0) 推荐(0) 编辑