- 博客(6)
- 收藏
- 关注
转载 vue2.0版本中v-html中过滤器的使用
Vue 2.0 不再支持在 v-html 中使用过滤器 解决方法: 1:全局方法(推荐) 2:computed 属性 3:$options.filters(推荐) 1:使用全局方法: 可以在 Vue 上定义全局方法: 1 Vue.prototype.msg = function(msg){ 2 3 return msg.replace("\n","<br...
2019-04-22 15:48:00 255
转载 vue-cli中轮播图vue-awesome-swiper使用方法
1 npm 安装 1 npm install vue-awesome-swiper --save 2在所用的组件中引入 1 import 'swiper/dist/css/swiper.css' 2 import { swiper, swiperSlide } from 'vue-awesome-swiper' 3 在components中进行注册 1 c...
2018-11-01 10:11:00 321
转载 vue-cli中跨域问题解决方法
webpack提供了配置代理的方法解决跨域 1 在vue-cli项目中打开webpack.dev.cof.js,如下 2 打开conifg目录下的index.js,在proxyTable中进行配置 1 proxyTable: { 2 '/api': { 3 target: 'http://192.168.10.202:808...
2018-11-01 09:44:00 289
转载 window下,nodejs 安装 http-server,开启命令行HTTP服务器
参考地址:https://www.cnblogs.com/jingangel/p/7477930.html 首先,必须有node环境(如果没有安装node.js,则在node的官网http://nodejs.cn/,下载安装) ; 其次,在node命令行下安装http-server,命令如下: 1 npm install http-server -g 然后,配置环境变量,将h...
2018-01-23 11:47:00 169
转载 Wampserver图标黄色解决
本文章是参考了该网址https://jingyan.baidu.com/article/48b37f8d0a02811a6564887b.html 安装了Wampserver后,并对httped.conf文件进行了配置。但是发现图标一直是黄色的,然后参考了该网址后,该问题得到了解决。步骤如下: 1、测试80端口有没有被占用: 2、如果该端口被占用,单击Wampserver-Ap...
2017-06-29 16:32:00 422
转载 select中的option被选中时页面的跳转
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <script src='js/jque...
2017-04-25 15:29:00 414
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人