{"action":"created","issue":{"url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/635","repository_url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile","labels_url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/635/comments","events_url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/635/events","html_url":"https://github.com/sdc-alibaba/SUI-Mobile/issues/635","id":153196389,"number":635,"title":"新手，0.6.2， 路由的ajax页面加载失败是啥情况","user":{"login":"gukeling","id":8936399,"avatar_url":"https://avatars.githubusercontent.com/u/8936399?v=3","gravatar_id":"","url":"https://api.github.com/users/gukeling","html_url":"https://github.com/gukeling","followers_url":"https://api.github.com/users/gukeling/followers","following_url":"https://api.github.com/users/gukeling/following{/other_user}","gists_url":"https://api.github.com/users/gukeling/gists{/gist_id}","starred_url":"https://api.github.com/users/gukeling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gukeling/subscriptions","organizations_url":"https://api.github.com/users/gukeling/orgs","repos_url":"https://api.github.com/users/gukeling/repos","events_url":"https://api.github.com/users/gukeling/events{/privacy}","received_events_url":"https://api.github.com/users/gukeling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T09:18:58Z","updated_at":"2016-05-06T01:30:27Z","closed_at":null,"body":"照着官网上面闹的，\r\n背景条件是这样的：\r\n1.建了一个文件夹，里面有两个静态的HTML页面，\r\n2.第一个页面照着例子考的，名叫1.html，全貌像下面这样\r\n\r\n\r\n`\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <meta charset=\"utf-8\">\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n    <title>首页</title>\r\n    <meta name=\"viewport\" content=\"initial-scale=1, maximum-scale=1\">\r\n    <link rel=\"shortcut icon\" href=\"/favicon.ico\">\r\n    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\r\n    <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\r\n    <link rel=\"stylesheet\" href=\"//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css\">\r\n    <link rel=\"stylesheet\" href=\"//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css\">\r\n</head>\r\n<body>\r\n\r\n<!-- page集合的容器，里面放多个平行的.page，其他.page作为内联页面由路由控制展示 -->\r\n<div class=\"page-group\">\r\n    <!-- 单个page ,第一个.page默认被展示-->\r\n    <div class=\"page page-current\" id='router'>\r\n        <header class=\"bar bar-nav\">\r\n            <h1 class='title'>路由</h1>\r\n        </header>\r\n        <div class=\"content\">\r\n            <div class=\"content-block\">\r\n                <ul>\r\n                    <li><a href=\"#router3\">内联的新页面</a></li>\r\n                    <li><a href=\"/page-form\">ajax加载新页面</a></li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n</div>\r\n\r\n<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>\r\n<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>\r\n<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>\r\n<!-- 默认必须要执行$.init(),实际业务里一般不会在HTML文档里执行，通常是在业务页面代码的最后执行 -->\r\n<script>$.init();</script>\r\n</body>\r\n</html>\r\n```\r\n\r\n`\r\n然后第二个页面，名叫2.html，全貌长这样：\r\n\r\n\r\n```\r\n<div class=\"page\" id=\"page-form\">\r\n    ajax加载的页面\r\n</div>\r\n```\r\n\r\n\r\n问题是第一个页面链接点击的时候不知道走没走路由然后愉快的跟普通链接一样跳转了，然后愉快的404了，这是啥情况呀\r\n"},"comment":{"url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/comments/217325219","html_url":"https://github.com/sdc-alibaba/SUI-Mobile/issues/635#issuecomment-217325219","issue_url":"https://api.github.com/repos/sdc-alibaba/SUI-Mobile/issues/635","id":217325219,"user":{"login":"gukeling","id":8936399,"avatar_url":"https://avatars.githubusercontent.com/u/8936399?v=3","gravatar_id":"","url":"https://api.github.com/users/gukeling","html_url":"https://github.com/gukeling","followers_url":"https://api.github.com/users/gukeling/followers","following_url":"https://api.github.com/users/gukeling/following{/other_user}","gists_url":"https://api.github.com/users/gukeling/gists{/gist_id}","starred_url":"https://api.github.com/users/gukeling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gukeling/subscriptions","organizations_url":"https://api.github.com/users/gukeling/orgs","repos_url":"https://api.github.com/users/gukeling/repos","events_url":"https://api.github.com/users/gukeling/events{/privacy}","received_events_url":"https://api.github.com/users/gukeling/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T01:30:27Z","updated_at":"2016-05-06T01:30:27Z","body":"@zjb82930 @liunian @benzhe @amoydavid @amoydavid "}}