{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1456","repository_url":"https://api.github.com/repos/RubyLouvre/avalon","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1456/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1456/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1456/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1456","id":159776067,"number":1456,"title":"for 多重循环问题","user":{"login":"ko300","id":19358817,"avatar_url":"https://avatars.githubusercontent.com/u/19358817?v=3","gravatar_id":"","url":"https://api.github.com/users/ko300","html_url":"https://github.com/ko300","followers_url":"https://api.github.com/users/ko300/followers","following_url":"https://api.github.com/users/ko300/following{/other_user}","gists_url":"https://api.github.com/users/ko300/gists{/gist_id}","starred_url":"https://api.github.com/users/ko300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ko300/subscriptions","organizations_url":"https://api.github.com/users/ko300/orgs","repos_url":"https://api.github.com/users/ko300/repos","events_url":"https://api.github.com/users/ko300/events{/privacy}","received_events_url":"https://api.github.com/users/ko300/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-11T14:28:11Z","updated_at":"2016-06-12T04:15:30Z","closed_at":"2016-06-12T04:15:30Z","body":"built in 2016-6-11:11 version 2.08\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <title>test</title>\r\n    <script src=\"Scripts/avalon.modern.js\"></script>\r\n</head>\r\n<body>\r\n    <div ms-controller=\"test\">\r\n        <div>\r\n            <div ms-for=\"el in ##data\">\r\n                {{el.name}}\r\n                <a href=\"#\" ms-click=\"##add1(el)\">添加</a>\r\n                <div ms-for=\"item in el.list\">\r\n                    {{item.name}}\r\n                    <a href=\"#\" ms-click=\"##del(item,el)\">删除</a>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <script>\r\n        var vm = avalon.define({\r\n            $id: \"test\",\r\n            data: [{ name: \"test\", list: [{ name: \"item1\" }] }],\r\n            add1: function (el) {\r\n                el.list.push({ name: 'item2' });//无效\r\n\r\n                // 有效\r\n                var list = el.list.$model;\r\n                list.push({ name: 'item2' });\r\n                el.list = list;\r\n            },\r\n            del: function (item, el) {\r\n                //el无法传值\r\n            }\r\n        });\r\n    </script>\r\n</body>\r\n</html>\r\n```\r\n"}}
{"actor":{"display_login":"RubyLouvre"}}