报错代码:

import time
from hashlib import md5
import execjs

s
data={"test":"abc"}

with open ("test.js", encoding='utf8') as f:
    js_data = f.read().encode("gbk", 'ignore').decode("gbk", "ignore")

ctx = execjs.compile(js_data)

code="pgenc('{}','{}','{}','{}')".format(sid,'',data,md5)

result=ctx.eval(code)
print(result)

报错内容:

execjs._exceptions.ProgramError: TypeError: Cannot read property 'extend' of undefined

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-12-24
  • 2021-09-17
  • 2021-04-02
  • 2021-06-25
相关资源
相似解决方案