Ich habe ein kurzes Beispiel für mein Problem erstellt. PrettyPrint-Override ">
Code: Select all
$(function(){
// Initialization code
$('ons-button.btnOne').on('click', function(e) {
ons.notification.alert('Button 1 is tapped!');
myNavigator.pushPage('page2');
});
$('ons-button.btnTwo').on('click', function(e) {
ons.notification.alert('Button 2 is tapped!');
myNavigator.pushPage('page2');
})
});< /code>
Page One
Button One!
Button Two!
Page 2
Button One!
Button Two!
Nothing happens when either button is pressed
Ich habe die Dokumentation gelesen, aber ich kann es mit Onsen-UI mit JQuery nicht ausarbeiten.>