{"action":"created","issue":{"url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/147","labels_url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/147/comments","events_url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/147/events","html_url":"https://github.com/zhangxinxu/mobilebone/issues/147","id":74618172,"number":147,"title":"Mobilebone.onpagefirstinto与data-onpagefirstinto=\"home\"问题","user":{"login":"xuetian120","id":1744242,"avatar_url":"https://avatars.githubusercontent.com/u/1744242?v=3","gravatar_id":"","url":"https://api.github.com/users/xuetian120","html_url":"https://github.com/xuetian120","followers_url":"https://api.github.com/users/xuetian120/followers","following_url":"https://api.github.com/users/xuetian120/following{/other_user}","gists_url":"https://api.github.com/users/xuetian120/gists{/gist_id}","starred_url":"https://api.github.com/users/xuetian120/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuetian120/subscriptions","organizations_url":"https://api.github.com/users/xuetian120/orgs","repos_url":"https://api.github.com/users/xuetian120/repos","events_url":"https://api.github.com/users/xuetian120/events{/privacy}","received_events_url":"https://api.github.com/users/xuetian120/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-09T08:06:36Z","updated_at":"2015-05-10T07:39:16Z","closed_at":null,"body":"示例mobilebone-master/test/callback/index.html\r\n\r\n添加 一个全局方法\r\nMobilebone.onpagefirstinto = function(pageinto) {\r\n\tconsole.log('onpagefirstinto');\r\n};\r\n此时意味着同时有了全局的onpagefirstinto，自身私有的onpagefirstinto，\r\n运行mobilebone-master/test/callback/index.html，报错 Uncaught TypeError: undefined is not a function\r\n此时追溯到home方法中使用的this竟然是window对象，不是语句Mobilebone.rootTransition = FUN;而不是定义的FUN！"},"comment":{"url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/comments/100597870","html_url":"https://github.com/zhangxinxu/mobilebone/issues/147#issuecomment-100597870","issue_url":"https://api.github.com/repos/zhangxinxu/mobilebone/issues/147","id":100597870,"user":{"login":"xuetian120","id":1744242,"avatar_url":"https://avatars.githubusercontent.com/u/1744242?v=3","gravatar_id":"","url":"https://api.github.com/users/xuetian120","html_url":"https://github.com/xuetian120","followers_url":"https://api.github.com/users/xuetian120/followers","following_url":"https://api.github.com/users/xuetian120/following{/other_user}","gists_url":"https://api.github.com/users/xuetian120/gists{/gist_id}","starred_url":"https://api.github.com/users/xuetian120/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuetian120/subscriptions","organizations_url":"https://api.github.com/users/xuetian120/orgs","repos_url":"https://api.github.com/users/xuetian120/repos","events_url":"https://api.github.com/users/xuetian120/events{/privacy}","received_events_url":"https://api.github.com/users/xuetian120/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T07:39:16Z","updated_at":"2015-05-10T07:39:16Z","body":"例子test/ajax-html/index.html#&pageHome：\r\n<li><a href=\"root-reload.php?id=1\" data-ajax=\"true\">根地址不缓存1</a></li>\r\n点击到最后一步到页面/test/ajax-html/index.html#&root-reload.php?id=8\r\n页面内容\r\ndocument.getElementById(\"idShow\").innerHTML是： ，应该结果是8.\r\n这里问题回到\r\nvar root_reload = function() {\r\n\tvar show = document.getElementById(\"idShow\"), should = document.getElementById(\"idShould\");\r\n\tif (show && should) {\r\n\t\tshow.innerHTML = should.innerHTML;\r\n\t}\r\n};\r\n理论上不应该document.getElementById(\"idShow\").innerHTML是后面为空！！！而应该是8"}}