修复get.stringify不能识别带$的函数bug,解放下拉框滚动条
This commit is contained in:
parent
7c0a6d7bef
commit
130004c63d
|
@ -5565,11 +5565,12 @@ div[data-decoration="bronze"]::after{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*--------其它--------*/
|
/*--------其它--------*/
|
||||||
::-webkit-scrollbar {
|
/* 解放下拉框滚动条! */
|
||||||
|
:not(select)::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
/* 火狐隐藏滚动条 */
|
/* 火狐和chrome120+隐藏滚动条 */
|
||||||
* {
|
:not(select) {
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
}
|
}
|
||||||
/* 更新进度条 */
|
/* 更新进度条 */
|
||||||
|
|
|
@ -739,7 +739,10 @@ export class Get extends Uninstantable {
|
||||||
toc = get.utc();
|
toc = get.utc();
|
||||||
console.log('time2: ' + (toc - tic));
|
console.log('time2: ' + (toc - tic));
|
||||||
}
|
}
|
||||||
static stringify(obj, level) {
|
/**
|
||||||
|
* @param {any} obj
|
||||||
|
*/
|
||||||
|
static stringify(obj, level = 0) {
|
||||||
level = level || 0;
|
level = level || 0;
|
||||||
let indent = '';
|
let indent = '';
|
||||||
let str;
|
let str;
|
||||||
|
@ -749,10 +752,14 @@ export class Get extends Uninstantable {
|
||||||
if (get.objtype(obj) == 'object' || obj instanceof lib.element.GameEventPromise) {
|
if (get.objtype(obj) == 'object' || obj instanceof lib.element.GameEventPromise) {
|
||||||
str = '{\n';
|
str = '{\n';
|
||||||
for (let i in obj) {
|
for (let i in obj) {
|
||||||
|
/**
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
let insertDefaultString;
|
let insertDefaultString;
|
||||||
let insertFunctionString = indent + ' ' + get.stringify(obj[i], level + 1) + ',\n';
|
let insertFunctionString = indent + ' ' + get.stringify(obj[i], level + 1) + ',\n';
|
||||||
let parseFunction = i => {
|
let parseFunction = (/** @type {string} */ i) => {
|
||||||
// let string = obj[i].toString();
|
// let string = obj[i].toString();
|
||||||
|
i = i.replaceAll('$', '\\$');
|
||||||
let execResult;
|
let execResult;
|
||||||
if (obj[i] instanceof GeneratorFunction) {
|
if (obj[i] instanceof GeneratorFunction) {
|
||||||
// *content(){}
|
// *content(){}
|
||||||
|
|
Loading…
Reference in New Issue