给定模板
<script type="text/x-handlebars">
{{#link-to 'test' (query-params test=0)}}link{{/link-to}}
</script>
和脚本
App = Ember.Application.create();
App.Router.map(function() {
this.resource('test');
});
App.TestController = Ember.ArrayController.extend({
queryParams: ['test'],
test: null
});
单击时,查询参数未显示在 url 中,此处显示为http://emberjs.jsbin.com/qawoza/1/edit。我究竟做错了什么?