posted @ 2019-07-05 09:13 taigudaren 阅读(292) 评论(0) 推荐(0)
摘要:
const path = require('path'); module.exports = { // entry 表示 入口,Webpack 执行构建的第一步将从 Entry 开始,可抽象成输入。 // 类型可以是 string | object | array entry: './app/entry', // 只有1个入口,入口只有1个文件 entr... 阅读全文
摘要:
验证邮箱 function isEmail(str){ var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; return reg.test(str); } 验证日期格式 function testReg(reg,str) 阅读全文
posted @ 2019-06-14 14:57 taigudaren 阅读(94) 评论(0) 推荐(0)
摘要:
var Person = function(name, email, website){ this.name = name; this.email = email; this.website = website; this.sayHello = function(){ var hello = "He 阅读全文
posted @ 2019-06-14 14:52 taigudaren 阅读(329) 评论(0) 推荐(0)
摘要:
Array.prototype.unique=function(){ var i,tmpArr=[]; for(i in this){ if(typeof this[i]!='function'){ if(tmpArr.join(',').indexOf(this[i]) 1){ tmpArr.pu 阅读全文
posted @ 2019-06-14 14:50 taigudaren 阅读(83) 评论(0) 推荐(0)
摘要:
如果您不希望选择任意的后代元素,而是希望缩小范围,只选择某个元素的子元素,请使用子元素选择器(Child selector)> 。 2、属性过滤样式 阅读全文
posted @ 2019-05-30 10:08 taigudaren 阅读(70) 评论(0) 推荐(0)
摘要:
一:全局路由: 二:主体路由:=》下面包含子路由 阅读全文
posted @ 2019-05-28 10:25 taigudaren 阅读(1952) 评论(1) 推荐(1)
摘要:
Vue.js的组件的使用有3个步骤:创建组件构造器、注册组件和使用组件。 阅读全文
posted @ 2019-05-23 11:26 taigudaren 阅读(130) 评论(0) 推荐(0)
摘要:
1.this.$router.push() 描述:跳转到不同的url,但这个方法回向history栈添加一个记录,点击后退会返回到上一个页面。 2.this.$router.replace() 描述:同样是跳转到指定的url,但是这个方法不会向history里面添加新的记录,点击返回,会跳转到上上一 阅读全文
posted @ 2019-05-22 08:34 taigudaren 阅读(87) 评论(0) 推荐(0)
浙公网安备 33010602011771号