Thank for help
i added can.route.ready(), but no change
my html code and js code
simple_routing.html
<html>
<head>
<script src="jquery-1.9.1.js"></script>
<script src="can.jquery.js"></script>
<script src="simple_route.js"></script>
</head>
<body>
<span><p>It's load ! </p></span>
<a href="#!active">Show Active</a>
</body>
</html>
simple_route.js
$(function() {
Router = can.Control({
"completed route" : function(){
console.log("the hash is #!completed")
},
"active route" : function(){
console.log("the hash is #!active")
},
"project/create" : function(){
console.log("the hash is #!project/create")
},
"route" : function(){
console.log("empty hash")
}
});
can.route.ready(true);
// make sure to initialize the Control
new Router(document);
});
canJs is loaded and JQuery also.
I don't understand...