Phonegap and WebWorkers

前端 未结 3 1889
旧时难觅i
旧时难觅i 2021-02-13 21:24

I am trying to write a PhoneGap/Cordova app.

I am trying to do some of the more long running background stuff in Web Workers. However I am finding that some of the funct

3条回答
  •  遥遥无期
    2021-02-13 22:10

    I would imaging that you could pass those to the worker with message. Something like suggested in here:

    javascript web workers - how do I pass arguments?

    As for the sql-lite db you should be able to initialize a connection lib from within a worker script much the same way you would your main script.

    I realize this answer may not be bounty worthy but may get you started in the right direction

提交回复
热议问题