![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
meteorshower2013
学习知识
展开
-
Vue 过滤器Filter的使用
1 用处格式化文本。过滤器可以用在两个地方:双花括号插值和 v-bind 表达式2 用法过滤器应该被添加在 JavaScript 表达式的尾部,由“管道”符号指示:<!-- 插值 -->{{ message | capitalize }}<!-- 在 `v-bind` 中 --><div v-bind:id="rawId | formatId"&...原创 2020-02-27 10:52:37 · 162 阅读 · 0 评论 -
vue 移动端 触屏拖拽功能
vue 实现移动端可拖拽浮球1 首先创建一个div<div class="floatball" id="floatball" @mousedown="down" @touchstart.stop="down" @mousemove="move" @touchmove.stop="move" @mouseup="end" @touchend.stop=...原创 2019-11-07 16:51:05 · 3086 阅读 · 3 评论 -
vue项目中,index.html和main.js和App.vue的关系
总结:index.html是主渲染文件,mian.js是桥梁,App.vue是模块。main.js中创建的vue对象,通过el的值与index.html的元素产生关联。vue中的template替换index.html的元素vue中的components替换template,template的值需要是...原创 2019-08-07 14:27:50 · 1960 阅读 · 0 评论