随笔分类 -  vue

摘要: 阅读全文
posted @ 2019-09-07 22:01 theshine 阅读(164) 评论(0) 推荐(0)
摘要:我们都知道,在处理跨域时经常会用到jsonp,服务器端用到cors,或则本地测试用到nginx反向代理,vue开发模式的proxy等。当我们在自己开发的时候,可能会请求一些网上的接口,但是会遇到一些问题,比如不支持跨域的远程数据接口无法使用,那么要怎么解决呢,先从nginx说起,Nginx (eng 阅读全文
posted @ 2019-05-25 13:52 theshine 阅读(17230) 评论(0) 推荐(0)
摘要:基本使用: 1.布局 2.写法 阅读全文
posted @ 2018-04-17 14:33 theshine 阅读(264) 评论(0) 推荐(0)
摘要:多个元素运动: <transtion-group enter-active-class=" " leave-active-class=" "> <p :key=" "></p> <p :key=" "></p> </transtion-group> 阅读全文
posted @ 2018-04-17 03:22 theshine 阅读(1324) 评论(0) 推荐(0)
摘要:Vue.js 监听属性 watch <div id = "computed_props"> 千米 : <input type = "text" v-model = "kilometers"> 米 : <input type = "text" v-model = "meters"> </div> <p 阅读全文
posted @ 2018-03-30 15:31 theshine 阅读(260) 评论(0) 推荐(0)
摘要:v-html 指令用于输出 html 代码 v-html 指令用于输出 html 代码 HTML属性中的值应使用v-bind指令 v-if 指令将根据表达式 seen 的值(true 或 false )来决定是否插入 p 元素。 v-for v-model为页面输入框进行数据绑定 v-on为页面元素 阅读全文
posted @ 2017-11-05 15:20 theshine 阅读(141) 评论(0) 推荐(0)