我正在使用pdftohtmlex将 pdf 文件转换为htmldom并收到此错误:
Internal Error: Attempt to output 65872 into a 16-bit field. It will be truncate and the file may not be useful.
在 js 中,我可以在向数组添加一些元素后冻结数组。有什么可以在Swift 中冻结数组吗?
什么是冷冻?
Ans:假设我们有一个数组。我们向该数组添加一些元素。
/* This is javascript code */
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
// fruits contains some elements
// Now freeze fruits. After freezing, no one can add, delete, modify this array.
Object.freeze(fruits);
Run Code Online (Sandbox Code Playgroud)
我的问题在这里 - “有什么可以快速冻结数组的东西吗?”