08 2018 档案

摘要:字面解析: 1.Angular1又名angularJs,从angular2,angular4都不带JS 2.变化:angular2跳转到angular4 架构: 1.angular1是基于MVC 2.angular2是基于组件(component)开发,与React.js类似 区别: 1.angul 阅读全文
posted @ 2018-08-17 13:48 刘丑丑鱼香肉丝 阅读(149) 评论(0) 推荐(0)
摘要:1.安装步骤:npm/cnpm install -g typescript 2.tsc -v (查看版本是否安装成功) 3.demo文件下detail步骤操作 i:新建一个demo.html 页面【引用demo.js】 ii:新建一个demo.ts文件 iii:在并列的此文件编译:tsc demo. 阅读全文
posted @ 2018-08-17 10:04 刘丑丑鱼香肉丝 阅读(4992) 评论(0) 推荐(0)
摘要:1. 以中国大陆手机号验证为例 阅读全文
posted @ 2018-08-16 17:51 刘丑丑鱼香肉丝 阅读(27726) 评论(0) 推荐(0)
摘要:eg:下载boostrap版本为3.3.7 npm install --save-dev bootstrap@3.3.7 备注:--save则将依赖的组件添加到package.json文件下 --save-dev 则将依赖的组件添加到 package.json 文件 devDependencies 阅读全文
posted @ 2018-08-15 10:13 刘丑丑鱼香肉丝 阅读(2307) 评论(0) 推荐(0)
摘要:dispatch:含有异步操作,eg:向后台提交数据,写法: this.$store.dispatch('mutations方法名',值) commit:同步操作,写法:this.$store.commit('mutations方法名',值) 阅读全文
posted @ 2018-08-13 15:04 刘丑丑鱼香肉丝 阅读(839) 评论(0) 推荐(0)
摘要:类型于get(query) 和 post(params) 1.query方式传参和接收参数 传参: this.$router.push({ path:"/xxx" query:{ id:id} }) 接收参数:this.$router.query.id 2.params方法传参合接收参数 传参: t 阅读全文
posted @ 2018-08-13 14:30 刘丑丑鱼香肉丝 阅读(695) 评论(0) 推荐(0)
摘要:JS: $.ajaxPrefilter( function (options) { if (options.crossDomain && jQuery.support.cors) { var http = (window.location.protocol 'http:' ? 'http:' : ' 阅读全文
posted @ 2018-08-09 15:16 刘丑丑鱼香肉丝 阅读(10146) 评论(4) 推荐(1)
只有注册用户登录后才能阅读该文。
posted @ 2018-08-09 15:06 刘丑丑鱼香肉丝 阅读(5) 评论(0) 推荐(0)