Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

消除科学计数 #113

Open
yudaobin opened this issue Dec 21, 2018 · 1 comment
Open

消除科学计数 #113

yudaobin opened this issue Dec 21, 2018 · 1 comment

Comments

@yudaobin
Copy link

比如身份号,excel怎么消除科学计数法,只展示字符串?

@mouqianxi
Copy link

mouqianxi commented Jun 18, 2021

js文件里这段判断一下,字段长度和是否为纯数字

if (rc.rows & rc.cols) {
if ($(q).html().length > 11 && !isNaN($(q).html())) {
tempRows += "" + $(q).html() + "";
} else {
tempRows += "" + $(q).html() + "";
}
} else {
if ($(q).html().length > 11 && !isNaN($(q).html())) {
tempRows += "<td style='mso-number-format:"\@"'";
} else {
tempRows += "<td";
} if( rc.rows > 0) {
tempRows += " rowspan='" + rc.rows + "' ";
}
if( rc.cols > 0) {
tempRows += " colspan='" + rc.cols + "' ";
}
tempRows += "/>" + $(q).html() + "";
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants