debug-syntax.html 373 B

123456789101112131415161718192021222324
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>debug-demo</title>
  6. <script src="../dist/template.js"></script>
  7. </head>
  8. <body>
  9. <h1>错误捕获(请打开控制台)</h1>
  10. <script id="test" type="text/html">
  11. {{2 a ba d}}
  12. </script>
  13. <script>
  14. var html = '';
  15. html = template('test', {});
  16. document.write(html);
  17. </script>
  18. </body>
  19. </html>