如何防止在office js中将文本字符串转换为数字
例如:101.01是字符串值,但是当数据添加到表中时,它将转换为101,01(欧洲数字格式),但在Excel中,它以文本格式显示为文本格式,但该值更改为(101.01 - > 101.01)) 。如何在办公室JS Excel附加组件中防止此操作
Ex: 101.01 is the string value but when data is added to the table it is converted to 101,01 (European number format) but in Excel it is displayed as text format, but the value is changed to (101.01 -> 101.01). How to prevent this in office js excel add-ins
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@cybernetic.nomad 的建议是正确的。在 脚本中运行此函数Lab 确实会将值作为字符串而不是数字插入:
请注意我如何在要插入的值字符串的开头插入撇号字符。
@cybernetic.nomad's suggestion is correct. Running this function in the Script Lab will indeed insert the value as a string, not as a number:
Note how I've inserted an apostrophe character at the beginning of the value string to be inserted.