[未解決]報錯: execjs._exceptions.ProgramError: TypeError: Cannot read property 'extend' of undefined


報錯代碼:

import time
from hashlib import md5
import execjs

sid="gom17h0kmgrtiba1mk9m6nt3mg"
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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM