小编Bal*_*nan的帖子

Node.js中的活动句柄是什么

我看到我的应用程序活动句柄数不断增加.活动句柄的数量究竟是多少?这是我必须要注意防止应用程序崩溃吗?

node.js pm2 puppeteer

9
推荐指数
1
解决办法
4516
查看次数

如何在Bookshelf.js中执行嵌套插入

如何将这样的对象插入两个表Book和Page

var book = {
    name: 'Hello',
    author: 'World',
    pages: [{
        pagetitle: 'intro',
        book: 8
    }, {
        pagetitle: 'chaptessr1',
        book: 8
    }]
};
Run Code Online (Sandbox Code Playgroud)

javascript bookshelf.js

7
推荐指数
1
解决办法
2948
查看次数

如何在PostgreSQL中使用Knex.js进行级联删除?

我在尝试删除另一个表(页面)引用的表(应用程序)时收到此错误.

knex.schema.dropTable("application").exec();
Run Code Online (Sandbox Code Playgroud)

错误是

Possibly unhandled error: cannot drop table application because other objects depend on it
at Connection.parseE (/home/balan/node_modules/pg/lib/connection.js:526:11)
at Connection.parseMessage (/home/balan/node_modules/pg/lib/connection.js:356:17)
at Socket.<anonymous> (/home/balan/node_modules/pg/lib/connection.js:105:22)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:745:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:407:10)
at emitReadable (_stream_readable.js:403:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
Run Code Online (Sandbox Code Playgroud)

postgresql bookshelf.js knex.js

4
推荐指数
1
解决办法
3055
查看次数

我可以使用 Service Worker 缓存 mp3 文件吗?

Service Worker 可以缓存的文件类型是否有任何限制?

service-worker

4
推荐指数
1
解决办法
1462
查看次数