Bond

Results 22 comments of Bond

@razam217 , About the `toJSON`, `The timezone is always zero UTC offset, as denoted by the suffix "Z".` as metioned here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString Maybe this one could help: https://github.com/mde/timezone-js

@cn-alenwong 这,, 这位童鞋, 立即停止你这个疯狂的想法, 你可以说说你的原始需求, 我来帮你分析分析.

我有一个, 我推荐使用第三方扩展时也可以试试 umd 包 比如, 若要使用 lodash, 那试试官方的 [lodash-es](https://www.npmjs.com/package/lodash-es) ES 模块版, 若要使用 rxjs, 推荐使用 umd 包, [rxjs](https://unpkg.com/rxjs/bundles/rxjs.umd.min.js), 或直接用 [rxjs6-wx](https://github.com/shrekuu/rxjs6-wx) 或 [RxWX](https://github.com/yalishizhude/RxWX) 若要使用 moment, 推荐一定要去掉不要的语言包, 如下图: ![image](https://user-images.githubusercontent.com/3136026/67941549-cff30f80-fc10-11e9-955b-b74f9583992e.png) 然后在需要某语言时这样引入: ![image](https://user-images.githubusercontent.com/3136026/67941603-f2852880-fc10-11e9-8496-4f33e17c43ca.png) dayjs 就算了,...

@CitrusHan 木有啊,桑心,vendor 过大大几率情况是第三方依赖过多或引用方式不合适,举了几个例子推荐了一下下引用依赖要注意的地方,不然开发过程 vendor 过大无法在手机微信里调试。真项目本身代码有那么大的话估计是项目需求问题,比如想在小程序里做太多事情,太复杂的需求,或公共组件过多。 要不你发下你们项目依赖列表我们来看看?比如 package.json 文件里的。

@CitrusHan 我试了你的这几个额外的包, vendor 并没有超过 300k, 可能不是第三方依赖的问题

@iamkun 方便的时间段处理

> @shrekuu 能具体一点吗 或者 demo code 之类的 好吧, 我举个栗子 ```js const fromDate = moment('2019-01-01 00:00:00') const toDate = moment('2019-01-12 00:12:00') // 时间段 10 天 21 小时 12 分钟 const duration...

@fairyoo 再装一下试试 `npm install mpvue-wxparse`

@Etheliene Well, it is an known issue. You have to use node v10 to run this. I am using nvm to install node v10.23.3 with foundation-cli.

I also find my neutral color does not work now. eg: `bg-neutral-300` I got `neutral`, `neutral-focus`, `neutral-content` these 3 colors.