This action will force synchronization from APIJSON/APIJSON-Demo, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
/**获取string,为null则返回''* @param s* @return*/function getString(s) {return s == null ? '' : s;}/**获取去掉前后空格后的string,为null则返回''* @param s* @return*/function getTrimmedString(s) {return this.getString(s).trim();}/**获取去掉所有空格后的string,为null则返回''* @param s* @return*/function getNoBlankString(s) {return this.getString(s).replace('\\s', '');}/**判断字符是否为空* @param s* @param trim* @return*/function isEmpty(s, trim) {if (s == null) {return true;}if (trim) {s = s.trim();}if (s == '') {return true;}return false;}/**添加后缀* @param key* @param suffix* @return key + suffix,第一个字母小写*/function addSuffix(key, suffix) {key = this.getNoBlankString(key);if (key == '') {return this.firstCase(suffix);}return this.firstCase(key) + this.firstCase(suffix, true);}/**首字母大写或小写* @param key* @param upper* @return*/function firstCase(key, upper) {key = this.getString(key);if (key == '') {return '';}const first = key.substring(0, 1);key = (upper ? first.toUpperCase() : first.toLowerCase()) + key.substring(1, key.length);return key;}/**全部大写* @param s* @param trim* @return*/function toUpperCase(s, trim) {s = trim ? this.getTrimmedString(s) : this.getString(s);return s.toUpperCase();}/**全部小写* @param s* @return*/function toLowerCase(s, trim) {s = trim ? this.getTrimmedString(s) : this.getString(s);return s.toLowerCase();}//校正(自动补全等)字符串>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。