oxyg3n
oxyg3n
我个人觉得其实没必要加`undefined`和`null`的判断,我测试是无论用`new Object()`还是`Object()`都能直接将`undefined`和`null`转成一个空对象
能不能自己写一个plugin呢?
> @mqyqingfeng 大大,console.log(0 == "\n")为什么是等于true?Number('\n')没搞明白为什么等于0,不是说如果有一个字符不是数字,结果都会返回 NaN么?为啥Number('\n')不是等于NaN 我建议你直接看ES规范文档里列出来的[StringNumericLiteral](https://tc39.es/ecma262/#prod-StringNumericLiteral)语法,String转Number本来就是一件很复杂的事情,不知道从哪个博客传出来的字母和数字混合就直接`NaN`这种说法,规范文档里重来没这么描述过,规范的明确表示是——“If the grammar cannot interpret the String as an expansion of StringNumericLiteral, then the result of ToNumber is NaN.”(如果String语法不符合StringNumericLiteral拓展的形式,就返回结果`NaN`); 从StringNumericLiteral的拓展语法来看,七种空格字符[WhiteSpace](https://tc39.es/ecma262/#prod-WhiteSpace),四种换行符[LineTerminator](https://tc39.es/ecma262/#prod-LineTerminator)出现在数字文本[StrNumericLiteral](https://tc39.es/ecma262/#prod-StrNumericLiteral)的前后都是符合情况的,而空白字符单独出现也是语法情况之一,至于其他的形式还有二进制`0b`,八进制`0o`,十六进制`0x`;以及包含科学计数法的十进制小数形式(`e`和`E`)等,例如`1.23E8`这种,也是符合语法规定的。
> 这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。 你好,我这边在外部项目使用`@alilc/lowcode-engine`提供的`init`方法也遇到了这个问题,请问这个暂时可以怎么解决呢
> > > 这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。 > > > > > > 你好,我这边在外部项目使用`@alilc/lowcode-engine`提供的`init`方法也遇到了这个问题,请问这个暂时可以怎么解决呢 > > 1.等正式版本发布。2.使用最新的 beta 版本。3.使用之前的正式版本。 `@alilc/lowcode-engine`改成 1.2.3-beta版本可以了 👍🏻
Maybe `npx nx release --skip-publish` and `pnpm publish -r` can solve this problem?
@Manviel maybe you can use this in your global css ```css @import '/node_modules/rc-steps/assets/index.css'; @import '/node_modules/rc-steps/assets/iconfont.css' ```