{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/175","labels_url":"https://api.github.com/repos/vuejs/Discussion/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/Discussion/issues/175/comments","events_url":"https://api.github.com/repos/vuejs/Discussion/issues/175/events","html_url":"https://github.com/vuejs/Discussion/issues/175","id":83280049,"number":175,"title":"对v-if的使用还是不怎么理解，能给个实例吗？","user":{"login":"zb188","id":511022,"avatar_url":"https://avatars.githubusercontent.com/u/511022?v=3","gravatar_id":"","url":"https://api.github.com/users/zb188","html_url":"https://github.com/zb188","followers_url":"https://api.github.com/users/zb188/followers","following_url":"https://api.github.com/users/zb188/following{/other_user}","gists_url":"https://api.github.com/users/zb188/gists{/gist_id}","starred_url":"https://api.github.com/users/zb188/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zb188/subscriptions","organizations_url":"https://api.github.com/users/zb188/orgs","repos_url":"https://api.github.com/users/zb188/repos","events_url":"https://api.github.com/users/zb188/events{/privacy}","received_events_url":"https://api.github.com/users/zb188/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T02:53:27Z","updated_at":"2015-06-01T02:56:12Z","closed_at":null,"body":"比如我 循环一个文章列表\r\n[{\"title\":\"文章标题1\",\"type':\"1\"},{\"title\":\"文章标题2\",\"type':\"2\"}]\r\n我要更具item 里的文章type 在列表中显示不同的图标，像这样的逻辑是写在 js里还是模版里？\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/comments/107289641","html_url":"https://github.com/vuejs/Discussion/issues/175#issuecomment-107289641","issue_url":"https://api.github.com/repos/vuejs/Discussion/issues/175","id":107289641,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T02:56:12Z","updated_at":"2015-06-01T02:56:12Z","body":"这种情况不应该用 `v-if`。\r\n``` html\r\n<img v-attr=\"src: 'icon' + type + '.png'\">\r\n```"}}