7,660
社区成员




var list = new WinJS.Binding.List();
var dbPath = Windows.Storage.ApplicationData.current.localFolder.path + "\\zxxk.db";
SQLite3JS.openAsync(dbPath).then(function (db) {
return db.eachAsync('select ChannelName,ChannelID from Cl_Channel where ChannelType=1 and IsShow=1 and ModuleID=2 order by OrderID asc', function (row) {
list.push({
group: row.ChannelID,
ChannelName: row.ChannelName,
ChannelID: row.ChannelID
})
}).then(function () {
db.close();
});
});
var result = await Windows.Storage.PathIO.ReadTextAsync("ms-appx://sqlite文件路径");
Windows.Storage.ApplicationData.Current.LocalFolder.Path
这个就是你的应用运行起来后的那个path