|

楼主 |
发表于 2017-3-2 15:05:18
|
显示全部楼层
用你给的方法可以找到数据了。
$model.alarmInfo( val("ca"), val("ht"), val("lp"))
我的list列表中的Span的bind-text绑定的方法就是上面的这个,一次传3个参数,我后面Span的方法和这个差不多,得传入一个或3个参数。参数值也都是上面的3个中的一个或3个。
但还是会报错,我把参数输出了一下,显示及报错如下:
Uncaught TypeError: Unable to process binding "text: function (){return $model.alarmBuilding( val("ca"),val("ht"),val("lp")) }"
Message: Cannot read property 'val' of undefined
4
9
11
4
9
11
41
9
21
41
9
21
Uncaught TypeError: Unable to process binding "text: function (){return $model.alarmBuilding( val("ca"),val("ht"),val("lp")) }"
Message: Cannot read property 'val' of undefined
报的这个错是不是可能是参数引起的。 |
|