zhangfangbiao

Results 6 comments of zhangfangbiao

我也遇到了这个问题,如果tokenSeparators里面只写中文逗号不写英文逗号的话,中文状态输入111,输入逗号,然后输入2,表现和你的不一样 ![image](https://user-images.githubusercontent.com/49065946/188429281-82d2e7bc-eb03-43da-bc55-cf12eadd610c.png)

```javascript function getMinIndex(arr) { let min = Infinity let minIndex arr.forEach((v, i) => { if (typeof v === 'number' && v > 0) { if (v < min) { min...

```javascript Array.prototype.splice2 = function(start, count, ...addList) { if (start < 0) { if (Math.abs(start) > this.length) { start = 0 } else { start = this.length + start } }...

> 可以参考下: > > ```js > // vue2 > import { SlateTransforms } from '@wangeditor/editor' > > methods: { > onCreated (editor) { > this.editor = Object.seal(editor) // 一定要用 Object.seal()...