摘要: 1. 迭代器(Iterator) 特殊对象,具有迭代过程的接口next()方法 每次调用next()方法,返回一个结果对象 结果对象有两个属性value(任何类型)和done(布尔类型) 当集合的值返回完时,再次调用next()方法,结果对象的done属性值为true,value为迭代器最终返回的值 阅读全文
posted @ 2023-02-17 17:44 箫笛 阅读(430) 评论(0) 推荐(0)
摘要: code/manifest.json { "manifest_version": 3, "name": "Code Tool", "description": "encode and decode string", "version": "1.0", "action": { "default_pop 阅读全文
posted @ 2023-02-17 11:44 箫笛 阅读(68) 评论(0) 推荐(0)
摘要: getCustomizedObject /** * @number: the count of object attribute * @prefix: the object attribute prefix string * @value: the value of each attribute, 阅读全文
posted @ 2023-02-17 10:54 箫笛 阅读(26) 评论(0) 推荐(0)
摘要: 1. 正整数 正则表达式:/^(?!0)[0-9]+$/ 不以0开头 function isInteger(value) { return /^(?!0)[0-9]+$/.test(value); } 2. 非0数 正则表达式:/^\-?0\.[0-9]*[1-9]+[0-9]*$|^\-?(?!0 阅读全文
posted @ 2023-02-17 10:31 箫笛 阅读(59) 评论(0) 推荐(0)