router.js内的路由配置 { path: '/CreateProgress', name: 'CreateProgress', component:CreateProgress } 传参(query方式 在地址栏可以看到) <router-link :to="{path:'CreateProg Read More
在index.html中 <style> @media all and (min-width: 0px) { html{font-size: 20px;}/* 12*4.6 */ } @media all and (min-width: 640px) { html{font-size: 50px;} Read More
1,pagination的配置 pagination: { el: '.swiper-paginationfull', // type:'bullets', // bulletElement : 'span',//设置分页器小圆点标签,默认为span标签 // clickable:true, // Read More
haha(){ var that=this; that.$refs.mySwiper.swiper.slideTo(1, 1000, false); } //以上代码是 获取ref值为myswiper的实例swiper,之后跳转到第二页,时间为1s,为false时不触发onSlideChange回调 Read More
<body style="text-align:center;"> <input type="text" style="width:200px;height:30px;background:pink;margin-top:100px auto 0;"> <div style="width:300px Read More
swiperOption: {//swiper的配置项 notNextTick: true,//想获得swiper实例对象,这个必须为true direction: 'vertical', // grabCursor: true,//鼠标覆盖Swiper时指针会变成手掌形状,拖动时指针会变成抓手形状 Read More
//author:caibaojian //website:http://caibaojian.com //weibo:http:weibo.com/kujian //这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750 Read More
1、先安装less-loader npm install less less-loader --save 2、再安装css-loader npm install css-loader --save 3、安装上面两个之后、再安装vue-awesome-swiper(必须在前两个安装过之后安装) npm Read More
let routeData = this.$router.resolve({ name: "detail", query: {goodsId:'1111'} }); window.open(routeData.href, '_blank'); Read More
var numbers=[1,2,3,4,5,4,3,2,1]; var some=numbers.some(function(item,index,arr){ return (item>2); }) console.log(some)//true 有一个返回true最终就返回true var ev Read More