我尝试使用js_of_ocaml构建一个应用程序。val myInstance = new MyFunction();我试着写一些类似这样的东西: let myInstance= Js.Unsafe.new_obj (Js.Unsafe.variable "MyFunction") [||] in
Js.Unsafe.call (Js.Unsafe.var
class="bar">bar</div></html>// this js file will be completely ignored with window.onload//window.onload = function() {
console.log("hello from external js")
HTML <script src="dist/js/script.js"></script> // I want to load this one before the script tag belowget the data that I want const el = document.querySelector(".js-localStorage