Caleb Porzio 5 年之前
父節點
當前提交
55a7beb33f
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      README.md
  2. 6 0
      index.html

+ 1 - 1
README.md

@@ -14,7 +14,7 @@ Think of it like [Tailwind](https://tailwindcss.com/) for JavaScript.
 
 **From CDN:** Add the following script to the end of your `<head>` section.
 ```html
-<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v1.4.0/dist/alpine.js" defer></script>
+<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v1.5.0/dist/alpine.js" defer></script>
 ```
 
 That's it. It will initialize itself.

+ 6 - 0
index.html

@@ -8,6 +8,12 @@
         <script src="/dist/alpine.js" defer></script>
     </head>
     <body>
+        <div x-data="{ foo: 'bar' }">
+            <span :class="foo"></span>
+
+            <button @click="foo = 'baz'">hey</button>
+        </div>
+
         <table>
             <thead>
                 <tr>