新建
This commit is contained in:
24
public/assets/libs/art-template/demo/debug-syntax.html
Normal file
24
public/assets/libs/art-template/demo/debug-syntax.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>debug-demo</title>
|
||||
<script src="../dist/template.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>错误捕获(请打开控制台)</h1>
|
||||
<script id="test" type="text/html">
|
||||
{{2 a ba d}}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var html = '';
|
||||
html = template('test', {});
|
||||
document.write(html);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user