上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: <template> <div class="home"> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide" v-for="(item, index) in banners" : 阅读全文
posted @ 2019-12-16 13:19 bingxiaoxiao 阅读(989) 评论(0) 推荐(0)
摘要: 第一步: 在config中引入 // 全局引入vant的提示框 import { Toast } from "vant"; Vue.use(Toast); 第二步: 在组要的.vue文件中引入 this.$toast('受不了了,宝贝不能再少了哦') 阅读全文
posted @ 2019-12-11 09:41 bingxiaoxiao 阅读(9022) 评论(0) 推荐(3)
摘要: data: { message:'<h3>我是一只小小小小鸟!</h3>' }, <div class="" >{{message}}</div> <div class="" v-text="message"></div> <div class="" v-html="message"></div> 阅读全文
posted @ 2019-12-07 17:08 bingxiaoxiao 阅读(2810) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-e 阅读全文
posted @ 2019-11-25 17:30 bingxiaoxiao 阅读(670) 评论(0) 推荐(0)
摘要: 前提 需要引入jquery 如果你用的单位不是px 修改的同时红色部分需保持一致 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>上下滚动公告栏</title> <script type="text/javascript" 阅读全文
posted @ 2019-11-22 14:43 bingxiaoxiao 阅读(408) 评论(0) 推荐(0)
摘要: if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { // window.webkit.messagehandlers是js的固定写法,只有写了这些 才可以和iOS原生或者安卓的进行交互, // 那个"authenticationCen 阅读全文
posted @ 2019-11-21 14:06 bingxiaoxiao 阅读(1568) 评论(0) 推荐(0)
摘要: 当前页面传参 window.location.href="realNameAuthenticationResult.html?type="+1 + "&name="+"zhangchenxao"; 下个页面接受参数 var url = location.search //获取url中"?"符后的字串 阅读全文
posted @ 2019-11-08 13:57 bingxiaoxiao 阅读(13691) 评论(0) 推荐(0)
摘要: var myDate = new Date(); var year = myDate.getFullYear(); //年 var month = myDate.getMonth() + 1; //月 var day = myDate.getDate(); //日 var days = myDate 阅读全文
posted @ 2019-10-10 15:27 bingxiaoxiao 阅读(1389) 评论(0) 推荐(0)
摘要: getWeek () { var getWeek = (function () { // 一周 var arr = []; // 周一开始 var newdate = new Date(); var now = newdate.getTime(); var day = newdate.getDay(); // 星期 var oneDayTime = 60 * 60 * 24 * 1000; for 阅读全文
posted @ 2019-10-10 15:24 bingxiaoxiao 阅读(796) 评论(0) 推荐(0)
摘要: 合并数组或者对象在数组或对象前面加...,是es6的新写法,然后数组的map方法会返回数组. 阅读全文
posted @ 2019-10-09 22:22 bingxiaoxiao 阅读(18608) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页