vue锦囊
记录平时工作中vue使用遇到的一些坑及解决方案
sxs1995
这个作者很懒,什么都没留下…
展开
-
vue+Vue-Awesome-Swiper实现移动端轮播效果
效果图代码<!-- * @Author: shenxsh * @Date: 2019-05-31 10:21:03 * @LastEditTime: 2019-05-31 11:44:06 * @LastEditors: Do not edit * @Description: 常用的swiper移动端效果 --><template> <div...原创 2019-05-31 11:51:00 · 2498 阅读 · 6 评论 -
vue移动端使用rem实现适配
rem.js 适配!(function(n) { var e = n.document, t = e.documentElement, i = 750, d = i / 100, o = "orientationchange" in n ? "orientationchange" : "resize", a = function() { v...原创 2019-05-31 10:58:14 · 1122 阅读 · 0 评论 -
在tomcat中设置history模式,使vue-router使用history模式
vue-router文档中只有关于Apache,nginx等配置的说明,同过查询找到了以下方法解决tomcat下history模式的问题。在web.xml中输入以下内容<?xml version="1.0" encoding="ISO-8859-1"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:...原创 2019-05-29 17:01:04 · 6463 阅读 · 0 评论 -
vue jsonp的封装
import originJsonp from 'jsonp'export default function jsonp(url, data, option) { url += (url.indexOf('?') < 0 ? '?' : '&') + param(data) return new Promise((resolve, reject) => { origi...原创 2018-06-14 14:24:08 · 646 阅读 · 0 评论