How do I use playWork tags with JavaScript? This did't work. Any other solution?
$.each(${specs}, function(i, v) {
addNewSizeLine(v);
});
Probably need to see the ${specs}
variable to be able to answer this better, but I think you need to turn this into a javascript array.
var jsSpecs = [#{list items: specs, as: 'spec' } '${spec}', #{/list}];
$.each(jsSpecs, function(i, v) {
addNewSizeLine(v);
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.