这段代码在本地JS中是可以运行的:console.log(window.byted_acrawler.sign({url:"https://www.toutiao.com/api/pc/list/feed"}));
但在调试箱中会报错,在易语言中也执行不了。
请问'window.byted_acrawler' 为 null 或不是对象 这个该怎样解决?
环境都补:
[JavaScript] 纯文本查看 复制代码 var window = this;
window.location = {
hash: "",
host: "www.toutiao.com",
hostname: "www.toutiao.com",
href: "https://www.toutiao.com/",
origin: "https://www.toutiao.com",
pathname: "/",
port: "",
protocol: "https:"
};
window.navigator = {
' userAgent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36'
};
|