ajquery.js/example.html

24 lines
602 B
HTML
Raw Normal View History

2021-07-23 10:34:57 +00:00
<!-- DEVELOPMENT version -->
<!--
(use ultra-fast, low-latency, pre-minified & compressed CDN for production)
-->
<body>
<script src="./ajquery.js"></script>
<script>
document.write("Hello, World!");
2024-08-29 20:15:11 +00:00
let text = $("body").textContent;
console.log(text);
2021-07-23 10:34:57 +00:00
</script>
2024-08-29 23:29:03 +00:00
<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>
2021-07-23 10:34:57 +00:00
</body>