Now I'm going to read the cache in the browser because the AJAX request is large enough to request once. But the problem is, in FF, there is no Ajax cache, that is, each time the AJAX request will be triggered, this is not the same as IE.
The AJAX request for jquery is the default request cache is true, which is turned on, and defaults to False when datatype is script and JSONP. Now I want to read the cache in the browser, because the AJAX request data is very large, request once is enough. But the problem is, in FF, there is no Ajax cache, that is, each time the AJAX request will be triggered, this is not the same as IE. So here's the thing to be aware of, to make a judgment that prevents the Ajax event from triggering. Code as follows: function Ajax_show (apartid,roomclass,sorttile) { Hx_this_fangxing_num=sorttile ; Huxing_pic_set_color (); var this_li=$ (' #title_ ' +sorttile); var cache=this_li.data ("cache"); if (Undefined!=cache) { var Data_arr =cache.spli T ('-'); xg_pic_links=data_arr[0];//cache record layout _PIC_LINKS=DATA_ARR[1]; LAYOUT_BIG_PIC_LINKS=DATA_ARR[2]; PRODUCT_LINKS=DATA_ARR[3]; xg_pic_deal_arRay (); xg_show_pic (xg_now_pic_id); }else{ $.aj Ax ({///JQ cache cached under FF or will launch new request type: "POST", & nbsp url: "Index.php?m=content&c=index&a=ajax_all_pic", data: "apartid=123&roomclass=123", datatype: ' text ', Success:function (backdata) {  THIS_LI.DA Ta (' cache ', backdata);/cache record &NBS P var Data_arr =backdata.split ('-'); xg_pic_links=data_arr[0]; layout_pic_links=data_arr [1]; layout_big_pic_links=data_arr[2]; product_links=data_arr[3]; xg_pic_deal_array (); xg_show_pic (xg_now_pic_id); &NBSP} &NB Sp }); } {