ohion

Results 7 comments of ohion

我遇到的报错是micro-app Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')。是从子应用切换到主应用的路由,再切换回来,子应用就加载不出来,页面空白,不过有时报错有时不报错,只有打包后会这样,本地不会。

我也遇到了这个问题,第一次加载了子应用,跳转到主应用其他的路由,再回来,子应用就加载不出来了,刷新一下页面才可以

1. 找出连续最大升序的数量 ``` (arr)=>{ let index = 1 let temp = [] for(let i=0;iindex){ index++ } }else{ break } } } } ```

2. 找出不连续最大升序的数量 ``` let num = 1 let temp2 = [] for(let i=1;inum){ num++ } }else{ continue } } } ```

```js function mostCharInStr(str){ let obj = {} let arr = str.split(''); let max = 1; let s = arr[0] for(let i=1;i max){ max = count s = arr[i] } }else{...

> 我觉得和window上挂载的AMap有关系,我试试 > > > 设置插件的scopeProperties试一下 > > ```js > > microApp.start({ > > plugins: { > > global: [ > > { > > scopeProperties: ['AMap'], > > }...

你好,我改了一下代码,主要就是加了一个变量isChange,以下是我的代码: ``` export default { name: 'DivEditable', props: { value: { type: String, default: '' }, maxlength: { type: Number, default: -1 } }, data() { return { innerText: this.value,...