加入新特性的浏览器检测
This commit is contained in:
parent
f996de11a0
commit
c83977f5b6
|
@ -24,6 +24,8 @@
|
|||
{name: "Array.prototype.toSorted()", version:{firefox:115,chrome:110,safari:16.0}, url: "https://caniuse.com/mdn-javascript_builtins_array_tosorted", test: ()=>Boolean(Array.prototype.toSorted)},
|
||||
{name: "Set.prototype.isDisjointFrom()", version:{firefox:127,chrome:122,safari:17.0}, url: "https://caniuse.com/mdn-javascript_builtins_set_isdisjointfrom", test: ()=>Boolean(Set.prototype.isDisjointFrom)},
|
||||
//{name: "Duplicate named capture group / 重复的正则表达式匹配命名组", version:{firefox:129,chrome:125,safari:17.0}, url: "https://caniuse.com/mdn-javascript_regular_expressions_named_capturing_group_duplicate_named_capturing_groups", test: ()=>Boolean(runCodeWithFunction("/(?<year>\\d{4})-\\d{2}|\\d{2}-(?<year>\\d{4})/"))},
|
||||
{name: "Uint8Array.fromBase64()", version:{firefox:133,chrome:Infinity,safari:18.2}, url: "https://caniuse.com/mdn-javascript_builtins_uint8array_frombase64", test: ()=>Boolean(Uint8Array.fromBase64)},
|
||||
{name: "Uint8Array.prototype.toBase64()", version:{firefox:133,chrome:Infinity,safari:18.2}, url: "https://caniuse.com/mdn-javascript_builtins_uint8array_tobase64", test: ()=>Boolean(Uint8Array.fromBase64)},
|
||||
];
|
||||
|
||||
const unsupportFeatures = features.filter(feature=>{
|
||||
|
|
|
@ -4991,7 +4991,6 @@ function initialize() {
|
|||
if (idArr.length > 0) {
|
||||
const ui16Arr = ArrayConvert.NumberArrayToBuffer(idArr, Uint16Array, Endian.little);
|
||||
|
||||
console.log(ui16Arr, new Uint8Array(ui16Arr.buffer));
|
||||
const b64 = (new Uint8Array(ui16Arr.buffer)).toBase64();
|
||||
const outObj = {
|
||||
"ui16": b64
|
||||
|
|
|
@ -44207,7 +44207,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"browser-compatibility.js",
|
||||
"3f645b199181d26bdf7e0234c509de6a"
|
||||
"db4cb14dd3d8bcb3d33039e7dac3e8f2"
|
||||
],
|
||||
[
|
||||
"index.html",
|
||||
|
@ -44235,7 +44235,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"script.js",
|
||||
"651dc95a440c6432688728ba4f0aec32"
|
||||
"5e45aa87a9428e4cd81a454d8d4bfe38"
|
||||
],
|
||||
[
|
||||
"solo.html",
|
||||
|
|
Loading…
Reference in New Issue