<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>A Gentle Introduction</title>
<script src="https://rawgit.com/flatiron/director/master/build/director.min.js"></script>
<script>
var viewBook = function(bookId,bookId2) { console.log("viewBook: bookId is populated: " + bookId+"="+bookId2); };
var routes = {
'/books/view/:bookId/:bookId2': viewBook
};
var router = Router(routes);
router.init();
</script>
</head>
<body>
<ul>
<li><a href="#/books/view/bookId1/bookId2">两个参数</a></li>
</ul>
</body>
</html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>A Gentle Introduction</title>
<script src="https://rawgit.com/flatiron/director/master/build/director.min.js"></script>
<script>
var viewBook = function(bookId,bookId2) { console.log("viewBook: bookId is populated: " + bookId+"="+bookId2); };
var routes = {
'/books/view/:bookId/:bookId2': viewBook
};
var router = Router(routes);
router.init();
</script>
</head>
<body>
<ul>
<li><a href="#/books/view/bookId1/bookId2">两个参数</a></li>
</ul>
</body>
</html>