![](/img/trans.png)
[英]JQuery Error “Uncaught TypeError: $(…).placeholder is not a function” [on hold]
[英]TypeError: jQuery(…).placeholder is not a function
我使用的是avada主题,版本3.6.1。 和runnig WP 4.5.5。
网站上未显示某些日历,错误为:语法错误,无法识别的表达式: a[href*=#]:not([href
我将main.js [href*=#] into [href*="#"]
更改main.js [href*=#] into [href*="#"]
现在我得到这个:
未捕获的TypeError:jQuery(...)。placeholder不是HTMLDocument上的函数。 (4b8c4.js:1792)在我(26ef1.js:5)在Object.fireWith [as resolveWith](26ef1.js:5)在Function.ready(26ef1.js:5)在HTMLDocument.K(26ef1.js) :5)
如果要更新placeholder
属性,则需要使用attr
方法。
$('[href*="#"]').attr('placeholder', 'hoge');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.