user-agent修改的方式

594 阅读1分钟

web端

seryice.defaults .headers .commonl"user-Agent"] = "xxx"

electron

win.loadURL(_loadURL, { userAgent: "xxxx", });