vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: “TypeError: Object(...) is not a func

简介: vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: “TypeError: Object(...) is not a func

前几天一个月薪35k的兄弟,给我推了一个人工智能学习网站,看了一段时间挺有意思的。包括语音识别、机器翻译等从基础到实战都有,很详细,分享给大家。

从后端拿取数据渲染到表格数据。结果明明写的没错,但是却报错

定位到代码中。

引入后端接口

引入的这个js,要用大括号包起来,不然就被当作方法调用,所以就会报错的呀

参考:vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: "TypeError: Object(…) is not a func 报错)

原文链接:vue.runtime.esm.js?2b0e:619 [Vue warn]:

结束

// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})// 伪代码
import { IDomEditor } from '@wangeditor/editor'
let editor: IDomEditor | null = null
ajax(url, res => {
  editor = createEditor({
    // content 或 html
    // 其他属性
  })
})


目录
相关文章
|
3天前
|
JavaScript
vue中使用 HotKeys.js 教程(按键响应、快捷键开发)
vue中使用 HotKeys.js 教程(按键响应、快捷键开发)
8 0
|
4天前
|
JavaScript
网页CAD(JS Vue 预览dwg)如何二次开发常用的CAD编辑功能
```markdown # CAD网页编程概览 - 使用mxcad库,实现CAD操作如删除、复制、镜像、移动和旋转。 - `erase()`方法删除实体,`clone()`配合`transformBy()`用于复制和编辑。 - `mirror()`和`transformBy(setMirror)`执行镜像操作,基于参考线。 - `move()`和`transformBy(setToTranslation)`实现移动功能。 - `rotate()`和`transformBy(setToRotation)`进行旋转,支持角度输入。 ```
网页CAD(JS Vue 预览dwg)如何二次开发常用的CAD编辑功能
|
3天前
|
JSON JavaScript 数据格式
vue 绘制波形图 wavesurfer.js (音频/视频) 【实用教程】
vue 绘制波形图 wavesurfer.js (音频/视频) 【实用教程】
17 3
|
1天前
|
JavaScript API
若依没解构送post请求出现的bug,vue.runtime.esm.js:620 [Vue warn]: Error in mounted hook: “TypeError: (0 , _inde
若依没解构送post请求出现的bug,vue.runtime.esm.js:620 [Vue warn]: Error in mounted hook: “TypeError: (0 , _inde
|
1天前
|
JSON JavaScript API
JS【详解】Map (含Map 和 Object 的区别,Map 的常用 API,Map与Object 的性能对比,Map 的应用场景和不适合的使用场景)
JS【详解】Map (含Map 和 Object 的区别,Map 的常用 API,Map与Object 的性能对比,Map 的应用场景和不适合的使用场景)
5 0
|
2天前
|
JavaScript
vue 农历日期转公历日期(含插件 js-calendar-converter 使用教程)
vue 农历日期转公历日期(含插件 js-calendar-converter 使用教程)
4 0
|
1天前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的个人健康管理系统小程序附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的个人健康管理系统小程序附带文章源码部署视频讲解等
10 2
|
1天前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的高校宿舍信息管理系统小程序附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的高校宿舍信息管理系统小程序附带文章源码部署视频讲解等
8 1
|
1天前
|
JavaScript Java 测试技术
基于springboot+vue.js+uniapp的电影交流平台小程序附带文章源码部署视频讲解等
基于springboot+vue.js+uniapp的电影交流平台小程序附带文章源码部署视频讲解等
9 1