问题
部分手机系统的浏览器 pdf v2版本会出现 structuredclone is not defined 的报错,这是因为浏览器过低
解决
查看structuredClone的浏览器兼容性
structuredClone api 文档
polyfill
网站下方有个 polyfill的网址入口 可以解决低版本的兼容问题 相应网址…
package com.lsy.leetcodehot100;import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;public class _Hot3_最长连续序列 {public static int longestConsecutive(int[] nums) {//创建set去重//对重复的数字进行去重Set<Integer> set new HashSet…