How to add javascript code on page ?

Answered Closed
0
0

How to add javascript code on page ?
<script type=“text/javascript”> // 获取设备像素比 var devicePixelRatio = window.devicePixelRatio || 1; // 根据设备像素比设置样式 if (devicePixelRatio === 1.25) { document.getElementsByClassName(“scaling-label”)[0].style.transform = “scale(1.0)”; } else { document.getElementsByClassName(“scaling-label”)[0].style.transform = “scale(1.2)”; } </script>

  • You must to post comments
Best Answer
0
0

You can use Call() or Eval() or the JavaScript extender. Or simply use a js file in default.hrml. You can also use Application.LoadPackages(). See api docs.

  • You must to post comments
Showing 1 result