V3.1 dom event not work


#1

My project structure is like this

-index.html
-pages:
–form.html
–about.html
-js/app.js:
$$(’#goto’).On (‘Click’, function ()) {
mianView.router.navigate (’/form/’);
$$(‘this’).AddClass (‘active’);
});
in index.html ----// Success
move to /pages/form.html -----// failure

< a id = “goto” href ="/form/"> That’s right, but I want to do more with JS

Thank