{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/1059","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/1059/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/1059/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/1059/events","html_url":"https://github.com/yyx990803/vue/issues/1059","id":95591488,"number":1059,"title":"vm.$log数组时报错","user":{"login":"chaoren1641","id":404245,"avatar_url":"https://avatars.githubusercontent.com/u/404245?v=3","gravatar_id":"","url":"https://api.github.com/users/chaoren1641","html_url":"https://github.com/chaoren1641","followers_url":"https://api.github.com/users/chaoren1641/followers","following_url":"https://api.github.com/users/chaoren1641/following{/other_user}","gists_url":"https://api.github.com/users/chaoren1641/gists{/gist_id}","starred_url":"https://api.github.com/users/chaoren1641/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaoren1641/subscriptions","organizations_url":"https://api.github.com/users/chaoren1641/orgs","repos_url":"https://api.github.com/users/chaoren1641/repos","events_url":"https://api.github.com/users/chaoren1641/events{/privacy}","received_events_url":"https://api.github.com/users/chaoren1641/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T05:42:32Z","updated_at":"2015-07-17T07:52:06Z","closed_at":null,"body":"`vm.$log([1,2])`\r\n\r\n时会提示错误:\r\n\r\n```Uncaught TypeError: t.charCodeAt is not a function```"},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/122207962","html_url":"https://github.com/yyx990803/vue/issues/1059#issuecomment-122207962","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/1059","id":122207962,"user":{"login":"butsalt","id":8847427,"avatar_url":"https://avatars.githubusercontent.com/u/8847427?v=3","gravatar_id":"","url":"https://api.github.com/users/butsalt","html_url":"https://github.com/butsalt","followers_url":"https://api.github.com/users/butsalt/followers","following_url":"https://api.github.com/users/butsalt/following{/other_user}","gists_url":"https://api.github.com/users/butsalt/gists{/gist_id}","starred_url":"https://api.github.com/users/butsalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/butsalt/subscriptions","organizations_url":"https://api.github.com/users/butsalt/orgs","repos_url":"https://api.github.com/users/butsalt/repos","events_url":"https://api.github.com/users/butsalt/events{/privacy}","received_events_url":"https://api.github.com/users/butsalt/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T07:52:06Z","updated_at":"2015-07-17T07:52:06Z","body":"vm.$log的作用是用来输出vm下的data中的部分/全部数据的。如果只是单纯要对数组在控制台输出为什么不用console.log呢？\r\n正确的用法应该是[这样的](http://jsfiddle.net/5sH6A/130/)  。\r\n这是官方的[api](http://vuejs.org/api/instance-methods.html#vm-\\$log\\(_\\[keypath\\]_\\))，你可以看一下。"}}