摘要: !function(e){var t=e.document,n=t.documentElement,i="orientationchange"in e?"orientationchange":"resize",a=function e(){var t=n.getBoundingClientRect( 阅读全文
posted @ 2018-11-06 02:29 祗堂幻狼 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 1 // alert(getQueryString('departmentName')); 2 3 function getQueryString(name) { 4 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 5 var r = window.location.search.substr(1)... 阅读全文
posted @ 2018-11-06 02:23 祗堂幻狼 阅读(191) 评论(0) 推荐(0) 编辑
摘要: html 阅读全文
posted @ 2018-11-06 02:22 祗堂幻狼 阅读(138) 评论(0) 推荐(0) 编辑
摘要: TypeScript 支持 在 Vue 2.5.0 中,我们大大改进了类型声明以更好地使用默认的基于对象的 API。同时此版本也引入了一些其它变化,需要开发者作出相应的升级。阅读博客文章了解更多详情。 发布为 NPM 包的官方声明文件 静态类型系统能帮助你有效防止许多潜在的运行时错误,而且随着你的应 阅读全文
posted @ 2018-09-11 15:22 祗堂幻狼 阅读(4470) 评论(3) 推荐(0) 编辑
摘要: 1 for (let i = 0; i < this.gotup.length; i++) { 2 const element = this.gotup[i]; 3 console.log(element); 4 if (element) { 5 ... 阅读全文
posted @ 2018-08-30 12:03 祗堂幻狼 阅读(392) 评论(0) 推荐(0) 编辑
摘要: ERROR Failed to compile with 1 errors 16:13:56 This dependency was not found: * mint-ui/lib/style.css in ./src/main.js To install it, you can run: npm 阅读全文
posted @ 2018-08-03 17:44 祗堂幻狼 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 步骤: 1、下载安装vuex,或者引入 2、创建实例store 3、传送存储数据 4、读取数据(vuex刷新无数据,使用WEB储存 localStorage 和 sessionStorage) 实例化! 1.先设置储存的数据 2.在mutations 写入方法 3.用 this.$store.com 阅读全文
posted @ 2017-09-07 17:50 祗堂幻狼 阅读(308) 评论(0) 推荐(0) 编辑
摘要: CMD中egret 的 command create 创建新项目 build 构建指定项目,编译指定项目的 TypeScript 文件 egret build命令会将template/debug中的index.html拷贝到项目根目录覆盖原有index.html。 publish 发布项目,使用Go 阅读全文
posted @ 2017-08-28 23:24 祗堂幻狼 阅读(935) 评论(0) 推荐(0) 编辑
摘要: transition-group Props: tag - string, 默认为 span move-class - 覆盖移动过渡期间应用的 CSS 类。 除了 mode,其他特性和 <transition> 相同。 事件: 事件和 <transition> 相同. 用法: <transition 阅读全文
posted @ 2017-08-27 21:34 祗堂幻狼 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Vue 在插入、更新或者移除 DOM 时,提供多种不同方式的应用过渡效果。包括以下工具: 在 CSS 过渡和动画中自动应用 class 可以配合使用第三方 CSS 动画库,如 Animate.css 在过渡钩子函数中使用 JavaScript 直接操作 DOM 可以配合使用第三方 JavaScrip 阅读全文
posted @ 2017-08-27 18:13 祗堂幻狼 阅读(285) 评论(0) 推荐(0) 编辑