Comments (2)
@chaiyixiao 我刚在new 出来的demo测试了一下, index.wpy中:
this.$invoke('counter1', 'log', 1, 2, 3);
然后在counter.wpy中加入自定义方法:
onLoad () {
}
log () {
console.log(arguments);
}
结果打印正确
[1, 2, 3]
from wepy.
1.4.5 (waiting)
F 修复了组件未定义methods时,使用$invoke报错的BUG。
working on 使用空template报错的BUG。
刚看到CHANGELOG,是以上已知 bug。
from wepy.
Related Issues (20)
- 考虑过出下一个版本吗? HOT 1
- wepy core bug
- wepy2.x文件压缩插件,可压缩es6+/console/debugger HOT 1
- 父组件与子组件如何实现双向绑定? 难道每次都触发父组件的方法吗
- 帮忙推荐一个开源小程序 洗鞋 洗衣 接口没问题 HOT 1
- wepy 2.0生命周期函数补充与修改lifecycle导致事件响应失效 HOT 1
- watch的时候,如果修改的文件超过一个,就重新编译整个项目而不是只编译修改的文件。 不知道为什么要这样做?
- Tencent
- 为什么安装 axios 就报错?
- Unrecognized import extension ? HOT 1
- 这个项目已经死了?
- postcss配置tailwindcss无效(支持tailwindcss)
- 微信开发者工具都不支持自己的wepy HOT 1
- wepy使用vant 的 tabs 组件,事件click传参找不到
- module 'npm/@hmscore/analytics-sdk-miniprogram/index.miniprogram.js' is not defined
- wepy init standard myproject报错 HOT 1
- 导入样式框架Tdesign-miniprogram不能resolve HOT 1
- wepy 编译 keyboard-accessory 不了 HOT 1
- wepy 编译不了 官方组件 keyboard-accessory?
- wepy build --watch报错,未找到编译器 wepy-compiler-less HOT 1
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 wepy.