Comments (6)
look this case
http://jsbin.com/jejuqik/1/edit?html,output
what version are you using?
from v-feedback.
哈哈 还是说中文吧,我的意思是建议改成当设置 “” 空字符串的时候 v-feedback 不会生效,这样在动态赋值的时候,设置 "" 值的时候就不会触发v-feedback的逻辑了。
from v-feedback.
haha
明白了,能告诉一下这个需求的场景吗?因为我还没遇到这样的场景。
from v-feedback.
比如我想写一个组件,在有点击事件的时候有点击效果,没有点击事件的时候不绑定点击效果,但是 vue 不支持这种根级属性的动态添加,不过有个方案,可以动态修改渲染后的 dom 元素属性,哈哈,我就这么干吧,谢咯
from v-feedback.
已经支持了动态数据,请看一下demo是不是你想要的。
或者项目文件 src/example.html 也有相同的案例。
http://jsbin.com/wucazeq/edit?html,output
from v-feedback.
哈哈 点个赞
from v-feedback.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v-feedback.