{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1601","repository_url":"https://api.github.com/repos/RubyLouvre/avalon","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1601/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1601/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1601/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1601","id":165720474,"number":1601,"title":"ie8 下提示问题","user":{"login":"shanzhongke","id":18737791,"avatar_url":"https://avatars.githubusercontent.com/u/18737791?v=3","gravatar_id":"","url":"https://api.github.com/users/shanzhongke","html_url":"https://github.com/shanzhongke","followers_url":"https://api.github.com/users/shanzhongke/followers","following_url":"https://api.github.com/users/shanzhongke/following{/other_user}","gists_url":"https://api.github.com/users/shanzhongke/gists{/gist_id}","starred_url":"https://api.github.com/users/shanzhongke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanzhongke/subscriptions","organizations_url":"https://api.github.com/users/shanzhongke/orgs","repos_url":"https://api.github.com/users/shanzhongke/repos","events_url":"https://api.github.com/users/shanzhongke/events{/privacy}","received_events_url":"https://api.github.com/users/shanzhongke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-15T06:30:52Z","updated_at":"2016-07-16T19:06:08Z","closed_at":"2016-07-16T19:06:08Z","body":"已经配置$id依旧提示：\r\nwarning!ms-gridList组件最好在ms-widget配置对象中指定全局不重复的$id以提高性能!\r\n若在ms-for循环中可以利用 ($index,el) in @array 中的$index拼写你的$id\r\n如 ms-widget=\"{is:'ms-button',$id:'btn'+$index}\" \r\n\r\n````\r\n<!doctype html>\r\n<html>\r\n\r\n\t<head>\r\n\t\t<meta charset=\"UTF-8\">\r\n\t\t<script src=\"vendor/avalon/avalon.js\"></script>\r\n\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<div ms-controller=\"test\">\r\n\t\t\t<xmp cached='true' ms-widget=\"[{is:'ms-gridList',$id:'xxxu'},@gridList]\"></xmp>\r\n\t\t</div>\r\n\t\t<script>\r\n\t\t\tfunction heredoc(fn) {\r\n\t\t\t\treturn fn.toString().replace(/^[^\\/]+\\/\\*!?\\s?/, '').\r\n\t\t\t\treplace(/\\*\\/[^\\/]+$/, '').trim().replace(/>\\s*</g, '><')\r\n\t\t\t}\r\n\r\n\t\t\tvar tpl = heredoc(function() {\r\n\t\t\t\t/*\r\n\t\t\t<ul class=\"gridList-body\">\r\n\t\t\t\t<li ms-for=\"(i,item) in @dataList\" ms-click=\"@checkOne(item)\">\r\n\t\t\t\t\t\t123\r\n\t\t\t\t</li>\r\n\t\t\t</ul>\r\n                 */\r\n\t\t\t})\r\n\r\n\t\t\tvar vm = avalon.define({\r\n\t\t\t\t$id: 'test',\r\n\t\t\t\tgridList: {\r\n\t\t\t\t\titems: [{\r\n\t\t\t\t\t\t\t\"name\": \"3434\",\r\n\t\t\t\t\t\t\t\"desc\": \"123\",\r\n\t\t\t\t\t\t\t\"ddays\": 0,\r\n\t\t\t\t\t\t\t\"record_time\": \"1467715853018\"\r\n\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\t\"name\": \"交通安保\",\r\n\t\t\t\t\t\t\t\"desc\": \"交通安保\",\r\n\t\t\t\t\t\t\t\"ddays\": 0,\r\n\t\t\t\t\t\t\t\"record_time\": \"0\"\r\n\t\t\t\t\t\t}] //实际数据\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\t\tavalon.component('ms-gridList', {\r\n\t\t\t\ttemplate: tpl,\r\n\t\t\t\tdefaults: {\r\n\t\t\t\t\titems: []\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t</script>\r\n\t</body>\r\n\r\n</html>\r\n````"}}
{"actor":{"display_login":"RubyLouvre"}}