zhaojs
2023-07-04 94a3257eff0174732c09f220b30d538cbe89776a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!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>