{"action":"created","issue":{"url":"https://api.github.com/repos/seajs/seajs/issues/1419","labels_url":"https://api.github.com/repos/seajs/seajs/issues/1419/labels{/name}","comments_url":"https://api.github.com/repos/seajs/seajs/issues/1419/comments","events_url":"https://api.github.com/repos/seajs/seajs/issues/1419/events","html_url":"https://github.com/seajs/seajs/issues/1419","id":54560301,"number":1419,"title":"seajs require  tpl  跨域问题 ","user":{"login":"cxh80301983","id":1124832,"avatar_url":"https://avatars.githubusercontent.com/u/1124832?v=3","gravatar_id":"","url":"https://api.github.com/users/cxh80301983","html_url":"https://github.com/cxh80301983","followers_url":"https://api.github.com/users/cxh80301983/followers","following_url":"https://api.github.com/users/cxh80301983/following{/other_user}","gists_url":"https://api.github.com/users/cxh80301983/gists{/gist_id}","starred_url":"https://api.github.com/users/cxh80301983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cxh80301983/subscriptions","organizations_url":"https://api.github.com/users/cxh80301983/orgs","repos_url":"https://api.github.com/users/cxh80301983/repos","events_url":"https://api.github.com/users/cxh80301983/events{/privacy}","received_events_url":"https://api.github.com/users/cxh80301983/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T10:24:44Z","updated_at":"2015-01-21T05:08:41Z","closed_at":null,"body":"如题，求高手解决方式"},"comment":{"url":"https://api.github.com/repos/seajs/seajs/issues/comments/70785400","html_url":"https://github.com/seajs/seajs/issues/1419#issuecomment-70785400","issue_url":"https://api.github.com/repos/seajs/seajs/issues/1419","id":70785400,"user":{"login":"chenmnkken","id":1049101,"avatar_url":"https://avatars.githubusercontent.com/u/1049101?v=3","gravatar_id":"","url":"https://api.github.com/users/chenmnkken","html_url":"https://github.com/chenmnkken","followers_url":"https://api.github.com/users/chenmnkken/followers","following_url":"https://api.github.com/users/chenmnkken/following{/other_user}","gists_url":"https://api.github.com/users/chenmnkken/gists{/gist_id}","starred_url":"https://api.github.com/users/chenmnkken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenmnkken/subscriptions","organizations_url":"https://api.github.com/users/chenmnkken/orgs","repos_url":"https://api.github.com/users/chenmnkken/repos","events_url":"https://api.github.com/users/chenmnkken/events{/privacy}","received_events_url":"https://api.github.com/users/chenmnkken/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T05:08:41Z","updated_at":"2015-01-21T05:08:41Z","body":"首先保证开发环境的配置的顶级域名是相同的，然后使用document.domain来设置相同的顶级域名，在静态资源的域中放置一个proxy.html（用于设置静态资源域的document.domain），使用iframe的形式将proxy.html加载到页面中，然后改写seajs-text，其xhr对象一律使用iframe.contentWindow来创建，比较烦碎，但还算是解决了跨域问题。"}}