Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有:
var tag = this.params['tag'];
如何使用它:
$('tag')
?
参数是this.params['tag'];什么?
this.params['tag'];
它不是原生财产。
它可能是你的类型/对象
所以你可以在jQuery下使用它:
$('tag')[0].params['tag'] //better
或者
$('tag').prop('params').tag //not recommanded