![](/img/trans.png)
[英]Unable to get value of the property 'call': object is null or undefined IE8
[英]In ie8 jquery error(The value of the property '$' is null or undefined, not a Function object)
在ie8 jQuery錯誤中(屬性“ $”的值為null或未定義,不是Function對象)
此錯誤僅出現在chrome和firefox中的ie8中工作正常。
$(document).ready(function (e) {
$('#otp').bind("cut copy paste", function (e) {
e.preventDefault();
});
$('#dropdown').on('click', function () {
$('.dropdownwrap').slideToggle();
});
$(window).load(function () {
$('#preloader').fadeOut('slow', function () {
$(this).remove();
});
});
});
在最新版的chrome和FF中(甚至還有Safari),本地支持'$'。
IE 9本機不支持此功能,因此會出現您指出的錯誤。
我強烈建議您在頁面中包含jQuery,然后重試代碼。
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
在頁面中包含此jQuery
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.