zy-补环境框架-实现-window补环境

This commit is contained in:
aiyingfeng 2023-08-12 15:09:57 +08:00
parent 7a25f17ecb
commit 1848ba9982

View File

@ -0,0 +1,14 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default function GetCode(){
let code = ''
code += fs.readFileSync(`${__dirname}/htmlDivElement.js`) + '\r\n'
return code
}