{"action":"closed","issue":{"url":"https://api.github.com/repos/leochen36/qmik/issues/6","labels_url":"https://api.github.com/repos/leochen36/qmik/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/leochen36/qmik/issues/6/comments","events_url":"https://api.github.com/repos/leochen36/qmik/issues/6/events","html_url":"https://github.com/leochen36/qmik/issues/6","id":56931380,"number":6,"title":"2.0版本发现sun模块bug2,$.use(\"module/demo\")时,一定要传回调函数","user":{"login":"cmcm0808","id":8523772,"avatar_url":"https://avatars.githubusercontent.com/u/8523772?v=3","gravatar_id":"","url":"https://api.github.com/users/cmcm0808","html_url":"https://github.com/cmcm0808","followers_url":"https://api.github.com/users/cmcm0808/followers","following_url":"https://api.github.com/users/cmcm0808/following{/other_user}","gists_url":"https://api.github.com/users/cmcm0808/gists{/gist_id}","starred_url":"https://api.github.com/users/cmcm0808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmcm0808/subscriptions","organizations_url":"https://api.github.com/users/cmcm0808/orgs","repos_url":"https://api.github.com/users/cmcm0808/repos","events_url":"https://api.github.com/users/cmcm0808/events{/privacy}","received_events_url":"https://api.github.com/users/cmcm0808/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T23:52:57Z","updated_at":"2015-02-09T05:03:02Z","closed_at":"2015-02-09T05:03:02Z","body":"代码:\r\n\r\n define(\"module/demo\", function(require, exports, module){\r\n\r\n        var module = {};\r\n\r\n        console.log(\"testdemo\");\r\n\r\n        return module;\r\n\r\n });\r\n\r\n//使用模块:\r\n\r\n$.use(\"module/demo\");//如果定义的代码define与use写在一个地方,第一次不会报错,否则第一次会报错\r\n\r\n$.use(\"module/demo\"); //如果定义的代码define与use写在一个地方,,第二次调用会报错\r\n\r\n"}}