import execjs with open('..//js//XXXX.js', encoding='utf-8') as f: YYYY= f.read() js = execjs.compile(YYYY) logid = js.call('getdata', "zxcvbnm") print(logid)
import execjs with open('..//js//XXXX.js', encoding='utf-8') as f: YYYY= f.read() js = execjs.compile(YYYY) logid = js.call('getdata', "zxcvbnm") print(logid)