Application of Ajax for in Eval () knowledge points

Source: Internet
Author: User

<!doctype html>"en">"UTF-8"> <title> Group Traffic Accident insurance-domestic travel insurances-China Ping An official Direct sales website </title> <link rel="stylesheet"href="Http://pcss1.4008000000.com/app_css/4008000000/v20/base.css"/> <link rel="stylesheet"href="Http://pcss1.4008000000.com/app_css/4008000000/v20/public.css"/> <link rel="stylesheet"href="Http://pcss1.4008000000.com/app_css/4008000000/v20/zaixiangoumai/baoxian/prolist.css"/> <style>. Prolist_cont,.prolist_cont_item {margin:0!important;padding:0!important;} </style>class="Prolist_cont"> <!--0928Group traffic Accident Insurance-<liclass="Prolist_cont_item"> <divclass="Default_box"> <divclass="default_box_img">"http://pimg1.4008000000.com/app_images/4008000000/v20/zaixiangoumai/baoxian/productList/tuantijiaotongyiwai.jpg"alt="Group Traffic Accident Insurance"></div> <spanclass="Default_box_name"> Group Traffic Accident Insurance </span> <pclass="Default_box_text"> Aircraft, trains, coaches, private cars are all <br/> Many people, team discounts high. </p> </div> <divclass="Current_box"> <divclass="current_box_name C"> <a href="/zaixiangoumai/baoxian/tuantijiaotongyiwai.shtml"otitle="Group Traffic Accident Insurance"Otype="Button"target="_blank" class="Current_box_name_link"> Group Traffic Accident insurance </a> <a href="/zaixiangoumai/baoxian/tuantijiaotongyiwai.shtml"otitle="Group Traffic Accident Insurance-View details"Otype="Button"target="_blank" class="Current_box_more"> View Details &gt;</a> </div> <divclass="current_box_list"> <ulclass="C"> <li><pclass="f_c_f63"> --$ 8 million </p> Aircraft Accident </li> <li><pclass="f_c_f63">Ten-$ 1 million </p> Train accident </li> <li><pclass="f_c_f63">Ten-$ 1 million </p> Ship Accident </li> <li><pclass="f_c_f63"style="width:80px;">Ten-$ 300,000 </p> Car (bus, private car, coach) accident </li> </ul> </div> <a href="http://www.pingan.com/pa18shopnst/productCenterNew/wrap.shtml?productCode=PAT0050"otitle="Group Traffic Accident Insurance-immediate quote"Otype="Button"target="_blank" class="current_box_btn"onclick="Hrefchangebymediasource (this);"> Immediate quotes </a> </div> <divclass="Resident_box C"> <ulclass="Ul_four"> <li> Electronic Policies </li> <li> National compensation </li> </ul> & Lt;divclass="Resident_box_price"> <p><spanclass="Resident_box_price_num">¥0.20</span>/people from </p> <a href="/zaixiangoumai/baoxian/tuantijiaotongyiwai.shtml?type=guestui#product-detail"otitle="Group Traffic Accident insurance-Reviews"Otype="Button"target="_blank"Id="ttjtywx" class="Resident_box_price_pinjia"><spanclass="f_c_f63"></span> reviews </a> </div> </div> </li> <!--0928Group traffic Accident Insurance End--></ul><div style="Display:none;"Id="Procodejson">{'PAT0050':'ttjtywx'}</div><script src="Http://pscript1.4008000000.com/app_js/paui/1.1.0/build/pa.ui.min.js"></script><script>    $(". Prolist_cont_item"). Hover (function () {$ ( This). AddClass ("Hover"); },function () {$ ( This). Removeclass ("Hover"); });</script><script type="Text/javascript">//ebusiness Server Address//code-and insurance products code; <a> element ID on the aId interface [with XXX comments]function Request_product_comment (code, aId) {//var url = '/ebusiness/payment/user/showothercommont.ajax?prepagesize=1&topagenumber=1&productcode= ' + Code;        /*            http://www.4008000000.com/member/do/commont/other/1/1/PAT0050output The following data {"ResultCode": "Success", "status": "Success", "MSG": "", "data": {"currentpage": "1", "pages": "1", " Fullsize ":" 1 "," datas ": [{" Commendlevel ":" Ten "," Commontcontent ":" For the good friend bought 11 period of traffic accident, product purchase is more convenient, many people insurance concessions are relatively large, Better solve a similar 11 holiday travel safety issues, payment is super convenient, very good, next trip also buy this. A small suggestion, can be a 3-day plan, sometimes weekends or small holidays can be used oh. "," Commontdatestr ":" 2015-09-29 11:00:22 "," Coursecomentlevel ":" 0 "," Licenceno ":" "," Pricecomentlevel ":" 0 "," UserName ":" King * * "," responsecontent ":" "," Responsedate ":" "," Commontid ":" 20150000000000397472 "," Serviceattitudelevel ":" 0 "," commontlevel ":" Ten "}]}}*/        varURL ='http://www.4008000000.com/member/do/commont/other/1/1/'+Code; $.ajax ({type:"GET", DataType:"JSON", Url:url, success:function (data) {show_product_comment (code, aId, data);    }        }); }    //when the number of comments is requested, the data is displayed according to the <a> IDfunction Show_product_comment (code, aId, comment) {if(!comment.data | |!comment.data.datas | | comment.data.datas.length = = =0){            $('#'+aId). Hide (); }Else{            $('#'+aId). Show (); $('#'+aid). attr ('title','already have'+comment.data.fullsize+'People Review'); $('#'+aid). attr ('Otitle','already have'+comment.data.fullsize+'People Review'); $('#'+aid). Find ('span'). HTML (comment.data.fullSize); }} $ (document). Ready (function () {varObjtext = $ ("#proCodeJson"). text (); varObj=eval ("["+objtext+"]")[0];  for(varOinchobj)        {request_product_comment (o, Obj[o]); }    });</script></body>

Application of Ajax for in Eval () knowledge points

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.