接口升级es2023兼容性
This commit is contained in:
parent
01d19f6590
commit
321a6426a5
@ -72,7 +72,7 @@ function pre(){
|
|||||||
|
|
||||||
let rule = {};
|
let rule = {};
|
||||||
let vercode = typeof(pdfl) ==='function'?'drpy2.1':'drpy2';
|
let vercode = typeof(pdfl) ==='function'?'drpy2.1':'drpy2';
|
||||||
const VERSION = vercode+' 3.9.49beta40 202400425';
|
const VERSION = vercode+' 3.9.49beta40 202400426';
|
||||||
/** 已知问题记录
|
/** 已知问题记录
|
||||||
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下,支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼,最新的文件发现这问题已经解决了]
|
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下,支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼,最新的文件发现这问题已经解决了]
|
||||||
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
|
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
|
||||||
@ -249,6 +249,14 @@ if (typeof Array.prototype.join != 'function') {
|
|||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (typeof Array.prototype.toReversed != 'function') {
|
||||||
|
Array.prototype.toReversed = function () {
|
||||||
|
const clonedList = this.slice();
|
||||||
|
// 倒序新数组
|
||||||
|
const reversedList = clonedList.reverse();
|
||||||
|
return reversedList;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
String.prototype.rstrip = function (chars) {
|
String.prototype.rstrip = function (chars) {
|
||||||
let regex = new RegExp(chars + "$");
|
let regex = new RegExp(chars + "$");
|
||||||
|
|||||||
2
libs/drpy2.min.js
vendored
2
libs/drpy2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user