import * as fs from 'fs';如果import后还是找不到fs,则用以下方法:定义:fs: typeof fs;构造方法中加载:this.fs = (<any>window).require('fs');
確定! 回上一頁