在每个生成的js脚本头部加
"use strict" 即可。我写了个py3脚本
```
import os
path = "/Users/uc10d/wp/gitlab/switch/client/bird/bin/js/" #文件夹目录
fns = [os.path.join(root,fn) for root, dirs, files in os.walk(path) for fn in files]
for f in fns:
print(f)
with open(f, "r+") as f:
old = f.read()
f.seek(0)
f.write("\"use strict\";")
f.write(old)
print(len(fns))
```