TypeError: a.replace is not a function 错误
2012-12-05 15:15
555 查看
jquery 如果是单属性css(width, width),
会报:TypeError: a.replace is not a function 错误,查半天要加引号。
css('width', width),
如果是对象形式就不会了:
css({ width : width })
会报:TypeError: a.replace is not a function 错误,查半天要加引号。
css('width', width),
如果是对象形式就不会了:
css({ width : width })
相关文章推荐
- 使用vue时Module build failed: TypeError: this._init is not a function错误的解决方法
- 错误提示:Uncaught TypeError: xxxxx(此处为要调用的函数) is not a function
- TypeError: url.indexOf is not a function ,使用jquery load()出现错误
- js错误:Uncaught TypeError: accept is not a function at HTMLInputElement.onclick
- javascript 错误 "Uncaught TypeError: string is not a function"
- Meteor错误:TypeError: Meteor.userId is not a function
- javascript 错误 "Uncaught TypeError: string is not a function"
- 海康web视频插件错误:TypeError: c.HWP_GetLocalConfig is not a function
- node.js开发错误——TypeError: req.flash is not a function
- jquery TypeError: 'undefined' is not a function (evaluating 'elem.nodeName.toLowerCase()') [jquery.js:1904]错误原因
- JS监听事件错误:Uncaught TypeError: xx(函数名)is not a function at HTMLInputElement.onclick
- TypeError: s[y] is not a function 表单提交错误
- 出现TypeError: 'undefined' is not a function (evaluating '$')错误
- 关于Jquery错误的解决:Uncaught TypeError: $.post is not a function
- jquery中Uncaught TypeError: $(...).ajaxUpload is not a function(…)错误解决方法
- 经典错误之:TypeError: res.json is not a function
- Controller中错误 TypeError: $rootScope.$broadcast is not a function
- js错误Uncaught TypeError: $(...).datagrid is not a function自己写的并没有错但是一直报这个错(详解)
- TypeError: record.get is not a function
- Highcharts :Uncaught TypeError: $(…).highcharts is not a function