上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页
摘要: let emoji_exp = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g; function estring(str) { const ms 阅读全文
posted @ 2020-12-26 16:24 Ajanuw 阅读(876) 评论(0) 推荐(0)
摘要: class A {} const proxy = new Proxy(new A(), { get(o, k) { if (!/\d+/.test(k.toString())) return o[k]; if (!o.prototype) o.prototype = {}; if (!o.proto 阅读全文
posted @ 2020-12-24 16:13 Ajanuw 阅读(328) 评论(0) 推荐(0)
摘要: 通常用于google搜索 See also: video 探索搜索库 阅读全文
posted @ 2020-12-22 15:02 Ajanuw 阅读(64) 评论(0) 推荐(0)
摘要: 在js中与第三方设备的通信 这是一个Xbox One手柄的demo,将手柄使用USB连接到PC上: See also: video Device APIs 通过JavaScript与蓝牙设备通信 在网络上访问USB设备 在Android版Chrome上与NFC设备互动 Serial port 连接到 阅读全文
posted @ 2020-12-22 13:59 Ajanuw 阅读(140) 评论(0) 推荐(0)
摘要: let data = { name: "ajanuw", change() { this.name = "Ajanuw"; }, get message() { console.log(this); return "hello " + this.name; }, }; console.log( Ob 阅读全文
posted @ 2020-12-20 13:54 Ajanuw 阅读(178) 评论(0) 推荐(0)
摘要: test/package.json { "name": "test", "main": "index.js", "exports": { ".": { "require": "./index.js" }, "./a": "./functions/a.js", "./b": "./functions/ 阅读全文
posted @ 2020-12-18 13:14 Ajanuw 阅读(2649) 评论(0) 推荐(0)
摘要: <form action="/verify-otp" method="POST"> <input type="text" inputmode="numeric" autocomplete="one-time-code" pattern="\d{6}" required> </form> naviga 阅读全文
posted @ 2020-12-17 11:35 Ajanuw 阅读(252) 评论(0) 推荐(0)
摘要: optimization: { minimizer: [ new TerserJSPlugin({ terserOptions: { format: { comments: /(\s*#if)|(\s*#end)/i, }, }, }), ], }, // #ifdef H5 // #endif 阅读全文
posted @ 2020-12-12 12:43 Ajanuw 阅读(799) 评论(0) 推荐(0)
摘要: See also: https://houdini.how/ https://github.com/una/extra.css#readme 阅读全文
posted @ 2020-12-10 13:34 Ajanuw 阅读(168) 评论(0) 推荐(0)
摘要: function myParseInt(str: string): number { let result = NaN; for (let i = 0; i < str.length; i++) { const dec: number = str.charCodeAt(i); if (dec < 4 阅读全文
posted @ 2020-12-10 11:01 Ajanuw 阅读(242) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页