Skip to content
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

点击链接加载 #4

Open
ALongLi opened this issue Feb 8, 2017 · 1 comment
Open

点击链接加载 #4

ALongLi opened this issue Feb 8, 2017 · 1 comment

Comments

@ALongLi
Copy link

ALongLi commented Feb 8, 2017

点击链接加载的内容是写在js里的,不是html文件,怎么以html文件实现

@screetBloom
Copy link

@ALongLi
思路即: 读取文件内容作为组件,在合适时机注入到页面中
可行之一的方法: ajax读取对应.html文件内容,将返回内容赋值给 self.routers[transition.path].fn 即可(注意ajax的加载时机)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants