From 39d1fab5642d32bd0ea5f84efe33e19b265a601b Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Thu, 29 Sep 2022 16:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=9E=E7=8E=B0drpy?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E8=83=BD=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "txt/muban/drpy\346\250\241\346\235\277.js" | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git "a/txt/muban/drpy\346\250\241\346\235\277.js" "b/txt/muban/drpy\346\250\241\346\235\277.js" index 1f53fa8..e634315 100644 --- "a/txt/muban/drpy\346\250\241\346\235\277.js" +++ "b/txt/muban/drpy\346\250\241\346\235\277.js" @@ -6,6 +6,17 @@ import ch from './cheerio.min.js'; // host: 'https://www.zbkk.net', // }); +function readFile(filePath){ + filePath = filePath||'./uri.min.js'; + var fd = os.open(filePath); + var buffer = new ArrayBuffer(1024); + var len = os.read(fd, buffer, 0, 1024); + console.log(len); + let text = String.fromCharCode.apply(null, new Uint8Array(buffer)); + console.log(text); + return text +} + const key = 'drpy_zbk'; let rule = { -- GitLab