We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeError: avalon.require is not a function --mmState.js 有什么办法,用的是avalon.shim.js
重写avalon.controller.loader【或者avalon.require = requrejs,如果你使用的是requirejs】 这是默认的loader:
avalon.controller.loader = function (url, callback) { // 没有错误回调... avalon.require(url, function ($ctrl) { callback && callback($ctrl); }); };
重写为:
avalon.controller.loader = function (url, callback) { // 没有错误回调... requrejs(url, function ($ctrl) { callback && callback($ctrl); }); };
请确保以上的操作发生在:
avalon.history.start({ // basepath: "/mmRouter", fireAnchor: false })
之前
The text was updated successfully, but these errors were encountered:
打印错误,请配置:
avalon.state.config({ onError: function() {console.log(arguments)} })
Sorry, something went wrong.
引入./mmRouter/mmState回调未执行,报" avalon.state is not a function"或者"avalon.ajax is not a function"
例子: https://github.com/gogoyqj/mmRouter-demo-list
No branches or pull requests
TypeError: avalon.require is not a function --mmState.js 有什么办法,用的是avalon.shim.js
重写avalon.controller.loader【或者avalon.require = requrejs,如果你使用的是requirejs】
这是默认的loader:
重写为:
请确保以上的操作发生在:
之前
The text was updated successfully, but these errors were encountered: