mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 18:24:51 +08:00
zy-补环境框架-实现-window补环境
This commit is contained in:
parent
7a25f17ecb
commit
1848ba9982
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user