Google代码管理器新手,不知道如何执行此操作。在我的谢谢你页面上,让我们说:
<tr>
<td>Sup</td>
<td>9</td>
<td>5</td>
</tr>
如何分离“购买的”字样中的每个字符串?所以我有这样的东西(产品),所以Tag Manager可以理解有3个独特的字符串:
TRinput.(whatgoes here to access the 3rd td)
我试过这些,但它并不是我所需要的:
var purchased = "product1;product2;product3"
答案 0 :(得分:0)
按;(space)
拆分怎么样?你的代码留下了空间。
var products = purchased.split(';');