📄 bs_number.lib.js
字号:
/********************************************************************************************* BlueShoes Framework; This file is part of the php application framework.* NOTE: This code is stripped (obfuscated). To get the clean documented code goto * www.blueshoes.org and register for the free open source *DEVELOPER* version or * buy the commercial version.* * In case you've already got the developer version, then this is one of the few * packages/classes that is only available to *PAYING* customers.* To get it go to www.blueshoes.org and buy a commercial version.* * @copyright www.blueshoes.org* @author Samuel Blume <sam at blueshoes dot org>* @author Andrej Arn <andrej at blueshoes dot org>*/function bs_number_parseInt(s) { s = s.replace(/ /, ''); s = s.replace(/'/, '');return parseInt(s, 10);}function Sign(y) { return (y<0?'-':'') }function Prepend(Q, L, c) { var S = Q+''if (c.length>0) while (S.length<L) { S = c+S }return S }function StrU(X, M, N) {var T, S=new String(Math.round(X*Number("1e"+N)))if (/\D/.test(S)) { return ''+X }with (new String(Prepend(S, M+N, '0')))return substring(0, T=(length-N)) + '.' + substring(T) }function StrT(X, M, N) { return Prepend(StrU(X, 1, N), M+N+2, ' ') }function bs_number_strS(X, M, N) {return Sign(X) + StrU(Math.abs(X), M, N);}function StrW(X, M, N) { return Prepend(StrS(X, 1, N), M+N+2, ' ') }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -