例如绑定一个css名称background-image,应该采用如下的方法:
data-bind="style:{ backgroundImage:'url('+skuimg+')'}"
background-image对应的JS名称为backgroundImage。
例如绑定一个css名称background-image,应该采用如下的方法:
data-bind="style:{ backgroundImage:'url('+skuimg+')'}"
background-image对应的JS名称为backgroundImage。