找回密码
 立即注册

QQ登录

只需一步,快速开始

mfhkibf

注册会员

17

主题

51

帖子

158

积分

注册会员

积分
158

[已处理] 設置單元格格式

mfhkibf
注册会员   /  发表于:2018-6-15 11:07  /   查看:3475  /  回复:1
我在文檔中看到設置格式好像都是css樣式,請問可以像Excel中一樣設置單元格的格式嗎?例如 為數值,貨幣,自定義等等

1 个回复

倒序浏览
Helen
高级会员   /  发表于:2018-6-15 11:54:43
沙发

支持的。在设计器中可以通过下图设置。
image.png888395385.png
也可以通过代码设置,例如:
sheet.setValue(9, 6, new Date(2013,3,1));sheet.setFormatter(9, 6, 'd-mmm;@');//orsheet.getCell(9, 6).formatter('d-mmm;@');
http://demo.grapecity.com.cn/SpreadJS/TutorialSample/#/demos/basicFormatter
http://demo.grapecity.com.cn/SpreadJS/TutorialSample/#/demos/customFormatter
http://demo.grapecity.com.cn/SpreadJS/TutorialSample/#/demos/accountingFormatter
image.png445904540.png
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部