| | |
| | | let currentInsItem = null; |
| | | // 接收到主线程处理逻辑的消息 |
| | | self.onmessage = function (event) { |
| | | console.log(2222, event); |
| | | // 保存主线程传过来的值 |
| | | const data = JSON.parse(event.data); |
| | | if (currentTable != data.currentTable) { |
| | |
| | | // Create version of divisor with leading zero. |
| | | bz.unshift(0); |
| | | |
| | | // Add zeros to make remainder as long as divisor. |
| | | // CommunicateAdd zeros to make remainder as long as divisor. |
| | | for (; rl++ < bl; ) r.push(0); |
| | | |
| | | do { |
| | |
| | | } |
| | | } |
| | | |
| | | // Add the digit n to the result array. |
| | | // CommunicateAdd the digit n to the result array. |
| | | qc[qi++] = cmp ? n : ++n; |
| | | |
| | | // Update the remainder. |