label class=choosebtn onclick=locationhref=test_pagehtmlpro_name=+encodeURIencodeURIlistname+&pro_id=+encodeURIencodeURIlisttype+&type=+encodeURIencodeURIlisttype模拟考试label中listname为什么要加list
这是因为{{list.name}}是在一个循环中使用的,而list是循环中的变量名,用来表示每次循环中的当前元素。通过加上list来引用循环中的当前元素,从而达到动态渲染页面的目的。
原文地址: http://www.cveoy.top/t/topic/Z3y 著作权归作者所有。请勿转载和采集!