阿敲同学
阿敲同学
```js function genFlakeId() { const flakeIdGen = new FlakeId(); return intformat(flakeIdGen.next(), 'dec'); } const ids = []; for (let i = 0; i < 50; i++) { ids.push(genFlakeId()); } //...
Uncaught (in promise) TypeError: Failed to execute 'decodeAudioData' on 'BaseAudioContext': parameter 1 is not of type 'ArrayBuffer'.
webpack4, How to merge html and js. Not a reference path
命名路由如何鉴权
访问 `GET`: `/api/goods/1234456` 时我该如何鉴权? ```js // router.js router.resources('goods', '/api/goods', controller.goods); // 鉴权中间件 async function(ctx, next) { const routerWhiteList = [ 'post:/api/goods', 'get:/api/goods/:id', ]; const url = ctx.url; const params =...
command: tensorflowjs_converter --input_format=tf_frozen_model --output_node_names='MobilenetV1/Predictions/Reshape_1' /mobilenet/frozen_model.pb /mobilenet/web_model result: ValueError: Unsupported Ops in the model before optimization MirrorPad
When converting Frozen Model, a pb file and a JSON file and a group1-shard1of1 file will be generated. Is this normal? The format in the JSON file is like this...
运行在 `iPhone X 12.0` ,中启动白屏,经过排查发现是 `bundle/index.js` 中的process.env.NODE_ENV找不到,手动将 `bundlejs` 中的全部 `process.env.NODE_ENV` 替换为字符串就正常了,如何解决? `macOS v10.13.4` `weex v1.3.11` `weexpack : v1.2.7` `weex-builder : v0.4.0` `weex-previewer : v1.5.1` 按照官网的教程, 依次执行 `weex create awesome-app` `cd...
## web end Vuex ```js /* global Vue */ /* weex initialized here, please do not move this line */ import router from './router' import store from '@/store/index' import App...
## web端同一个文件中 * undefined is not an object (evaluating 'modal.alert') ```js const modal = weex.requireModule('modal') modal.alert({ message: 'hello' }) ``` * success ```js weex.requireModule('modal').alert({ message: 'hello' }) ```