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
/** * ajax远程加载页面 */ var loadPage = function(hash){ var id = _formatHash(hash); //优先从remotePage中寻找是否有对应的url,没有则根据id自动从basePagePath中装载 var url = J.settings.remotePage[id]||J.settings.basePagePath+id+'.html' if(!url){ console.error(404,'页面不存在!'); return; } if(J.settings.showPageLoading){ J.showMask('正在加载...'); } $.ajax({ url : url, timeout : 10000, async : false, success : function(html){ if(J.settings.showPageLoading){ J.hideMask(); } //添加到dom树中 $('#section_container').append(html); //触发pageload事件 $('#'+id).trigger('pageload'); //构造组件 J.Element.init(hash); } }) }
var url = J.settings.remotePage[id]||J.settings.basePagePath+id+'.html'
这个url我想从动态获取怎么实现啊
The text was updated successfully, but these errors were encountered:
J.launch({ remotePage : { '#section_id : '你的远程路径地址' } })
Sorry, something went wrong.
No branches or pull requests
var url = J.settings.remotePage[id]||J.settings.basePagePath+id+'.html'
这个url我想从动态获取怎么实现啊
The text was updated successfully, but these errors were encountered: