Mysterious 'object doesnt support this method'error in IE8 on google.load

后端 未结 3 1700
太阳男子
太阳男子 2020-12-21 18:29

i am using google search JSAPI in my local search app. Everything works fine in all the browsers except IE 8. The problem is after the specific line of code my jquery base o

3条回答
  •  -上瘾入骨i
    2020-12-21 19:06

    Change your jsFiddle to "No wrap (body)" and modify your function like so...

    //$(function() {
        //alert(1);
        google.load('search',1);
        alert($);
    
        google.setOnLoadCallback(function() {       
            alert(2);
        });
    //});
    

    Nearly the same question asked here: Google is not defined using Google Visualization API; possibly jQuery's fault

提交回复
热议问题