Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个 判断不怎么起效果 #30

Open
wzskyline opened this issue Sep 22, 2021 · 1 comment
Open

这个 判断不怎么起效果 #30

wzskyline opened this issue Sep 22, 2021 · 1 comment

Comments

@wzskyline
Copy link

testDB = new Godb('testDB');
console.log( 1,testDB.tables.configTable);
if( !testDB.tables.stockTable){
console.log("不存在stockTable")
stockTable = testDB.table('stockTable');
}
testDB.tables 打印出来明明是json 对象 为啥这个判断不起效果呢

@chenstarx
Copy link
Owner

stockTable = testDB.table('stockTable');
这一行才会创建 stockTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants