给出以下示例,为什么categoryId
null
?
var scripts = this.evaluate(function() {
var raScripts = "A lengthy script";
return raScripts;
});
var categoryId = this.evaluate(function() {
var text = 'more text';
var lengthyScript = scripts + ' ' + text;
return lengthyScript;
});
this.echo('Status: ' + categoryId);
// categoryId is null