The problem of calling js in python

Call js
in

python. I usually call the js interface through execjs. Does this intelligence return a value through a function?
_ js = open (qiMingJsPath, "r"). Read ()

data = execjs.compile(_js).call("n", json_data["data1"])

is it true that the value can only be obtained through this call call function? Can"t get scalar values directly?

Sep.06,2021
Menu