有没有办法在SuiteScript 2.0中的Before Load用户事件中获取当前URL参数?
我试过document.location.href
和Context.form.location.href
,但它不起作用。
beforeLoad
的入口点通过http.ServerRequest
参数为您提供context.request
。
function beforeLoad(context) {
var parms = context.request.parameters;
if(parms) {
// do stuff
}
}