我使用的是avada主题,版本3.6.1。并运行 WP 4.5.5。
某些日历未在网站上显示,错误为:语法错误,无法识别的表达式:a[href*=#]:not([href
我将 main.js [href*=#] 更改为 [href*="#"]
现在我得到了这个:
Uncaught TypeError: jQuery(...).placeholder is not a function at HTMLDocument. (4b8c4.js:1792) at i (26ef1.js:5) at Object.fireWith [as resolveWith] (26ef1.js:5) at Function.ready (26ef1.js:5) at HTMLDocument.K (26ef1.js:5)
最佳答案
如果你想更新placeholder
属性,你需要使用attr
方法。
$('[href*="#"]').attr('placeholder', 'hoge');
关于javascript - TypeError : jQuery(. ..).placeholder 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41761013/