我正在尝试使用下面的jquery:-
exportTable.find('td#column5').css("mso-number-format","0");
但是如果我硬编码为例如:-
<td id="column5" style='mso-
number-format:"0"';>-374857899483837484</td> it works fine.
我需要动态分配此格式,如何实现?
最佳答案
当您通过 css()
应用 css 属性时,应该采用驼峰命名法。尝试一下
exportTable.find('td#column5').css("msoNumberFormat","0");
关于javascript - jquery 将 long 转换为数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43488009/