onsenui:在javascript文件中创建onsenui元素
有没有可能在另一个javascript文件夹中创建onsen ui元素而不使用Angular,如果没有,我想如何使用Angular仅识别js文件中的ons指令,我的意思是,我不打算使用Angular,因为我已经使用了本机javascript 我对angular不太了解,我想我必须了解它,但在我完成我已经启动的这个应用程序之前,我不能 如果这是我的js代码的一部分onsenui:在javascript文件中创建onsenui元素,javascript,angularjs,onsen-ui,Javascript,Angularjs,Onsen Ui,有没有可能在另一个javascript文件夹中创建onsen ui元素而不使用Angular,如果没有,我想如何使用Angular仅识别js文件中的ons指令,我的意思是,我不打算使用Angular,因为我已经使用了本机javascript 我对angular不太了解,我想我必须了解它,但在我完成我已经启动的这个应用程序之前,我不能 如果这是我的js代码的一部分 var app = { initialize: function() { this.bindEvents(
var app = {
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offline', and 'online'.
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicitly call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
console.log('console');
db = opendb();
//alert(db);
db.transaction(initdb, initError, initSuccess);
db.transaction(populatedb, initError, initSuccess);
getHomeContent();
//db.transaction(GetData, queryError, querySuccess);
//GetData();
},
// Update DOM on a Received Event
receivedEvent: function(id) {
console.log('Received Event: ' + id);
}
};
app.initialize();
(function(){
document.getElementById("id_page").style.visibility = 'hidden';
})();
我应该添加什么来使我的文件识别onsen指令