{"action":"opened","issue":{"url":"https://api.github.com/repos/seajs/seajs/issues/1517","labels_url":"https://api.github.com/repos/seajs/seajs/issues/1517/labels{/name}","comments_url":"https://api.github.com/repos/seajs/seajs/issues/1517/comments","events_url":"https://api.github.com/repos/seajs/seajs/issues/1517/events","html_url":"https://github.com/seajs/seajs/issues/1517","id":79338983,"number":1517,"title":"需要在页面中渲染一段服务器生成的json数据，要传给逻辑模块，怎样做才更好？","user":{"login":"jerrydong","id":1004244,"avatar_url":"https://avatars.githubusercontent.com/u/1004244?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrydong","html_url":"https://github.com/jerrydong","followers_url":"https://api.github.com/users/jerrydong/followers","following_url":"https://api.github.com/users/jerrydong/following{/other_user}","gists_url":"https://api.github.com/users/jerrydong/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrydong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrydong/subscriptions","organizations_url":"https://api.github.com/users/jerrydong/orgs","repos_url":"https://api.github.com/users/jerrydong/repos","events_url":"https://api.github.com/users/jerrydong/events{/privacy}","received_events_url":"https://api.github.com/users/jerrydong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T07:47:41Z","updated_at":"2015-05-22T07:47:41Z","closed_at":null,"body":"我有一个模块，每次运行都要绑定来自服务器生成的一个json数据，这个数据我们就以json的形式渲染到了页面上，起初，我采取define数据模块的形式在页面的<script>内，代码如下\r\n```javascript\r\ndefine('moduleData', { /* 服务器数据 */ })\r\n```\r\n然后模块中用require('moduleData')，这种做法，经常会出现seajs去引用一个path/moduleData.js的404错误。\r\n\r\n现在我只能在页面的<script>中渲染全局变量，如下\r\n```javascript\r\nwindow.moduleData =  { /* 服务器数据 */ };\r\n```\r\n请大神们指点一下，是否有更好的方法，非常感谢！！！"}}