-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callback用不了? #18
Comments
报callback is not a function... |
@wodenwang 请获取本仓库下最新的文件,https://github.com/progrape/router/blob/dev/dist/router.min.js weui demo 页面的文件是旧版本的 |
@progrape thx. |
@progrape 十分抱歉,又是我. callback需要两个入参,第一个入参表示什么?有没有更详细点的示例用法? |
render: function (callback){
callback(null, '<button>home</button>');
} callback 的第一个参数约定是标识错误,如果没有错误就传入 |
嗯.假如我希望标识错误,是传入什么内容呢? |
@wodenwang 可以传入一个 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wxui.html是一个$.ajax的封转.
The text was updated successfully, but these errors were encountered: