Возникла другая ошибка:
Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode.
Я передаю код JS в Chromium, и не могу понять, эта ошибка JS, или Chromium?
Код:
|
JS:= 'var tours_list = document.querySelectorAll(".item-tour-pay-list > .item-tour-pay-inform ");'+
'alert("Test");'+
'tours_list.forEach(function(tours) { '+
''+
'alert("Test 2");'+
'})';
Chromium1.Browser.GetMainFrame.ExecuteJavaScript(JS, 'about:blank', 0); |