Skip to content

Commit 2f023a9

Browse files
author
Levin Du
committed
fix spell error
1 parent eab1643 commit 2f023a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
var router = new Router('#app');
1212
router.use('/', {
1313
render: function(){
14-
return '<div><h4>page1</h4><p><a href="#/baidu">a path does not exits<a><br/><a href="#/page2">#page2</a></p></div>';
14+
return '<div><h4>page1</h4><p><a href="#/baidu">a path does not exist<a><br/><a href="#/page2">#page2</a></p></div>';
1515
},
1616
onEnter: function(){
17-
alert("hi i\'m here, page1");
17+
alert("hi here, i'm page1");
1818
},
1919
onLeave: function(){
2020
alert('goodbye page1');
2121
}
2222
}).use('/page2', {
2323
render: function(){
24-
return '<div>page2</div>';
24+
return '<div><h4>page2</h4></div>';
2525
},
2626
onEnter: function(){
2727
alert('hi page2');

0 commit comments

Comments
 (0)