chris-wei / wx-component Goto Github PK
View Code? Open in Web Editor NEW微信小程序自定义组件开发
微信小程序自定义组件开发
//触发取消回调
this.triggerEvent("cancelEvent")......这里要写2个函数回调....怎么改成写一个...根据index区分
这个报selectComponent不是一个 Function
用这个完全做组件化的小程序 你觉得怎么样 感觉不怎么好用啊
样式不全啊
wx-component/pages/index/index.wxml
Line 7 in 153d10c
大神好,我遇到了一个问题,就是我想多次使用这个弹出组件,但显示的内容永远是第一次调用的数据。
明白了,刚解决了,去注册一下就好了。
onReady: function () {
//注册组件
this.dialog = this.selectComponent('#dialog')
this.dialog = this.selectComponent('#dialog2')
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.