Uncaught TypeError: object is not a function

简介: Created by Jerry Wang, last modified on Aug 24, 2014

Created by Jerry Wang, last modified on Aug 24, 2014

在Chrome里使用BSP page遇到如下error:

image.png

错误指向onclick property:

image.png

然而其指向的my_upload function在script file里已经正确地被实现:

image.png

根据link http://blog.sina.com.cn/s/blog_70c2f37801011x3j.html,该问题是由于html page里有和my_upload同名的控件出现:

将名字更改后错误即消失。

image.png

相关文章
|
10月前
TypeError:Joi.validate is not a function 解决办法
TypeError:Joi.validate is not a function 解决办法
ambiguous call to overloaded function
ambiguous call to overloaded function
|
中间件
解构如何运用的解构--报错 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
解构如何运用的解构--报错 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
解构如何运用的解构--报错 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
|
5月前
Uncaught TypeError: Cannot use ‘in‘ operator to search for ‘path‘ in undefined
Uncaught TypeError: Cannot use ‘in‘ operator to search for ‘path‘ in undefined
|
5月前
|
JavaScript 前端开发
Vue报错“ Uncaught TypeError: Cannot read property ‘use‘ of undefined”
Vue报错“ Uncaught TypeError: Cannot read property ‘use‘ of undefined”
309 1
|
11月前
Uncaught TypeError: l.push is not a function
Uncaught TypeError: l.push is not a function
|
自然语言处理 JavaScript
Uncaught TypeError: Cannot read property of undefined
vue中出现这种错误导致这种错误产生的原因是在选项 property 或回调上使用箭头函数 created: () => console.log(this.a) 或 vm.$watch('a', newValue => this.myMethod()) 1 2 因为箭头函数并没有 this,this 会作为变量一直向上级词法作用域查找,直至找到为止
112 0
|
JavaScript
成功解决:Uncaught TypeError: Cannot read property 'search' of undefined
成功解决:Uncaught TypeError: Cannot read property 'search' of undefined
|
Dart 前端开发 JavaScript
Syntax Error: TypeError: this.getOptions is not a function
Syntax Error: TypeError: this.getOptions is not a function
514 0
Syntax Error: TypeError: this.getOptions is not a function
|
资源调度 Android开发
Uncaught Error: null is not an object(evaluating 'RNFreshchatSdk.FilterType')
Uncaught Error: null is not an object(evaluating 'RNFreshchatSdk.FilterType')
357 0