Answer the question
In order to leave comments, you need to log in
Why is there an error in the Illegal constructor console when converting a PHP array to js?
Good afternoon.
Tell me why there is an error
in template.php
$jsParams = array(
'ID' => '22',
);
<script>
var item22 =
new Element(<?=CUtil::PhpToJSObject($jsParams, false, true)?>);
</script>
console.log(Element);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question