{"action":"created","issue":{"url":"https://api.github.com/repos/douban/rexxar-ios/issues/19","repository_url":"https://api.github.com/repos/douban/rexxar-ios","labels_url":"https://api.github.com/repos/douban/rexxar-ios/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/douban/rexxar-ios/issues/19/comments","events_url":"https://api.github.com/repos/douban/rexxar-ios/issues/19/events","html_url":"https://github.com/douban/rexxar-ios/issues/19","id":183254300,"number":19,"title":"Rexxar Container 和 Rexxar Web 之间的交互","user":{"login":"myeveryheart","id":6395323,"avatar_url":"https://avatars.githubusercontent.com/u/6395323?v=3","gravatar_id":"","url":"https://api.github.com/users/myeveryheart","html_url":"https://github.com/myeveryheart","followers_url":"https://api.github.com/users/myeveryheart/followers","following_url":"https://api.github.com/users/myeveryheart/following{/other_user}","gists_url":"https://api.github.com/users/myeveryheart/gists{/gist_id}","starred_url":"https://api.github.com/users/myeveryheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myeveryheart/subscriptions","organizations_url":"https://api.github.com/users/myeveryheart/orgs","repos_url":"https://api.github.com/users/myeveryheart/repos","events_url":"https://api.github.com/users/myeveryheart/events{/privacy}","received_events_url":"https://api.github.com/users/myeveryheart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-16T07:45:42Z","updated_at":"2016-10-17T04:26:02Z","closed_at":null,"body":"Rexxar Web 具体前端实现是在 DOM 中加入一个 iframe 来加载此 URL，以来完成对 Rexxar Container 的通知。这种原理和WebViewJavascriptBridge是一样的。\r\n我在想能否让前端发送ajax，由NSURLProtocol做拦截。\r\n尝试的过程中发现拦截到了request，但无法分辨该request由谁发起，所以不知道由哪个controller做相应动作。"},"comment":{"url":"https://api.github.com/repos/douban/rexxar-ios/issues/comments/254109998","html_url":"https://github.com/douban/rexxar-ios/issues/19#issuecomment-254109998","issue_url":"https://api.github.com/repos/douban/rexxar-ios/issues/19","id":254109998,"user":{"login":"ianwith","id":6823107,"avatar_url":"https://avatars.githubusercontent.com/u/6823107?v=3","gravatar_id":"","url":"https://api.github.com/users/ianwith","html_url":"https://github.com/ianwith","followers_url":"https://api.github.com/users/ianwith/followers","following_url":"https://api.github.com/users/ianwith/following{/other_user}","gists_url":"https://api.github.com/users/ianwith/gists{/gist_id}","starred_url":"https://api.github.com/users/ianwith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianwith/subscriptions","organizations_url":"https://api.github.com/users/ianwith/orgs","repos_url":"https://api.github.com/users/ianwith/repos","events_url":"https://api.github.com/users/ianwith/events{/privacy}","received_events_url":"https://api.github.com/users/ianwith/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T04:26:02Z","updated_at":"2016-10-17T04:26:02Z","body":"1. 在 Rexxar 中 Widget 的实现确实是通过 iframe，本质上和JavascriptBridge一样。\r\n2. Rexxar 还有另外一种数据服务，ContainerAPI，是通过NSURLProtocol拦截请求来实现的，用来提供一些基础的数据支持，譬如Geo信息。"}}
{"actor":{"display_login":"ianwith"}}