| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title></title>
- <meta charset="utf-8">
- <script src="bind.js"></script>
- <script src="../../../dist/seed.js"></script>
- </head>
- <body>
- <div id="normal">
- <p sd-text="one + ' ' + two.three + '!'"></p>
- <input id="one" sd-model="one" name="one"> <input id="two" sd-model="two.three" name="two">
- </div>
- <div id="lazy">
- <p sd-text="one + ' ' + two.three + '!'"></p>
- <form id="form">
- <input sd-model="one" name="three"> <input sd-model="two.three" name="four">
- </form>
- </div>
- <script>
- var normal = new Seed({
- el: '#normal',
- scope: {
- one: 'Hello',
- two: {
- three: 'World'
- }
- }
- })
- var lazy = new Seed({
- el: '#lazy',
- lazy: true,
- scope: {
- one: 'Hi',
- two: {
- three: 'Ho'
- }
- }
- })
- </script>
- </body>
- </html>
|