ajquery.js/example.html

24 lines
602 B
HTML

<!-- DEVELOPMENT version -->
<!--
(use ultra-fast, low-latency, pre-minified & compressed CDN for production)
-->
<body>
<script src="./ajquery.js"></script>
<script>
document.write("Hello, World!");
let text = $("body").textContent;
console.log(text);
</script>
<script src="./ajquery.min.cjs"></script>
<script>
console.log("globalThis.AJQuery:", globalThis.AJQuery);
</script>
<script type="module" src="./ajquery.min.mjs"></script>
<script type="module">
import AJQuery from "./ajquery.mjs";
console.log("imported AJQuery", AJQuery);
</script>
</body>