7,655
社区成员
发帖
与我相关
我的任务
分享
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
来接分
目前WP8也不支持用该技术开发App啊。