import execjs
def get_js():
f = open(r"sign.js", 'r', encoding='UTF-8') ##打开JS文件
line = f.readline()
htmlstr = ''
while line:
htmlstr = htmlstr + line
line = f.readline()
ctx = execjs.compile(htmlstr)
return ctx.call('get_as_cp_signature')
网友评论