{"action":"opened","issue":{"url":"https://api.github.com/repos/seajs/seajs/issues/1427","labels_url":"https://api.github.com/repos/seajs/seajs/issues/1427/labels{/name}","comments_url":"https://api.github.com/repos/seajs/seajs/issues/1427/comments","events_url":"https://api.github.com/repos/seajs/seajs/issues/1427/events","html_url":"https://github.com/seajs/seajs/issues/1427","id":55104916,"number":1427,"title":"如果两个页面用了一些不同的js效果.seajs是如何工作的?","user":{"login":"darkbluegood","id":3346779,"avatar_url":"https://avatars.githubusercontent.com/u/3346779?v=3","gravatar_id":"","url":"https://api.github.com/users/darkbluegood","html_url":"https://github.com/darkbluegood","followers_url":"https://api.github.com/users/darkbluegood/followers","following_url":"https://api.github.com/users/darkbluegood/following{/other_user}","gists_url":"https://api.github.com/users/darkbluegood/gists{/gist_id}","starred_url":"https://api.github.com/users/darkbluegood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkbluegood/subscriptions","organizations_url":"https://api.github.com/users/darkbluegood/orgs","repos_url":"https://api.github.com/users/darkbluegood/repos","events_url":"https://api.github.com/users/darkbluegood/events{/privacy}","received_events_url":"https://api.github.com/users/darkbluegood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-22T01:58:19Z","updated_at":"2015-01-22T01:58:19Z","closed_at":null,"body":"假如一个首页(index),一个内页(page);\r\n这两个页面都用了seajs.use('main');就是都引用了main.js\r\n我在index页面里写了一个幻灯片效果.这个的代码都写在main.js\r\n例子:\r\ndefine(\"main\",function(require,exports,module){\r\n\trequire(\"focus\");//幻灯片\r\n});\r\ndefine(\"focus\",function(require,exports,module){\r\n\t//do things\r\n});\r\n但是page页面没有这个幻灯片效果.当打开page内的时候main.js被加载.\r\n加载到require(\"focus\")这里的时候 有什么影响的吗??或者说这样写符合seajs的逻辑标准吗?\r\n因为打开page页的时候 ,既不会报错又没发生页面有什么问题.所以想问问."}}