{"action":"created","issue":{"url":"https://api.github.com/repos/imweb/Q.js/issues/74","repository_url":"https://api.github.com/repos/imweb/Q.js","labels_url":"https://api.github.com/repos/imweb/Q.js/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/imweb/Q.js/issues/74/comments","events_url":"https://api.github.com/repos/imweb/Q.js/issues/74/events","html_url":"https://github.com/imweb/Q.js/issues/74","id":149996212,"number":74,"title":"q-on并不支持字符串参数吧。","user":{"login":"cnx2016","id":13433267,"avatar_url":"https://avatars.githubusercontent.com/u/13433267?v=3","gravatar_id":"","url":"https://api.github.com/users/cnx2016","html_url":"https://github.com/cnx2016","followers_url":"https://api.github.com/users/cnx2016/followers","following_url":"https://api.github.com/users/cnx2016/following{/other_user}","gists_url":"https://api.github.com/users/cnx2016/gists{/gist_id}","starred_url":"https://api.github.com/users/cnx2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnx2016/subscriptions","organizations_url":"https://api.github.com/users/cnx2016/orgs","repos_url":"https://api.github.com/users/cnx2016/repos","events_url":"https://api.github.com/users/cnx2016/events{/privacy}","received_events_url":"https://api.github.com/users/cnx2016/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-21T07:58:26Z","updated_at":"2016-04-22T01:28:35Z","closed_at":"2016-04-21T15:16:52Z","body":"只支持e，this。\r\n看了下源码，如下所示：\r\n`\t    on: {\r\n\t        bind: function () {\r\n\t            var self = this,\r\n\t                key = this.target,\r\n\t                param = this.param,\r\n\t                filters = this.filters,\r\n\t                vm = this.vm,\r\n\t                handler = vm.applyFilters(this.vm[key], filters),\r\n\t                data = param && (~param.indexOf('this')) && self.data();\r\n\t            _.add(this.el, this.arg, function (e) {\r\n\t                if (!handler || typeof handler !== 'function') {\r\n\t                    return _.warn('You need implement the ' + key + ' method.');\r\n\t                }\r\n\t                var args = [];\r\n\t                param ?\r\n\t                    param.forEach(function (arg) {\r\n\t                        if (arg === 'e') args.push(e);\r\n\t                        else if (arg === 'this') args.push(data);\r\n\t                    }) :\r\n\t                    args.push(e);\r\n\r\n\t                handler.apply(vm, args);\r\n\t            });\r\n\t        }\r\n\t    }\r\n`"},"comment":{"url":"https://api.github.com/repos/imweb/Q.js/issues/comments/213200445","html_url":"https://github.com/imweb/Q.js/issues/74#issuecomment-213200445","issue_url":"https://api.github.com/repos/imweb/Q.js/issues/74","id":213200445,"user":{"login":"cnx2016","id":13433267,"avatar_url":"https://avatars.githubusercontent.com/u/13433267?v=3","gravatar_id":"","url":"https://api.github.com/users/cnx2016","html_url":"https://github.com/cnx2016","followers_url":"https://api.github.com/users/cnx2016/followers","following_url":"https://api.github.com/users/cnx2016/following{/other_user}","gists_url":"https://api.github.com/users/cnx2016/gists{/gist_id}","starred_url":"https://api.github.com/users/cnx2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnx2016/subscriptions","organizations_url":"https://api.github.com/users/cnx2016/orgs","repos_url":"https://api.github.com/users/cnx2016/repos","events_url":"https://api.github.com/users/cnx2016/events{/privacy}","received_events_url":"https://api.github.com/users/cnx2016/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T01:28:35Z","updated_at":"2016-04-22T01:28:35Z","body":"看源码加了一行：\r\n`\t                        else args.push(self.data(arg));\r\n`\r\n这就是说入参也可以传入当前对象的属性了？"}}