ense": sum, "acquireLicensePage": sum } var script = document.createElement('script'); script.type = 'application/ld+json'; script.text = JSON.stringify(jsonData); var faqscript = document.createElement('script'); faqscript.type = 'application/ld+json'; faqscript.text = JSON.stringify(faqData); var imgscript = document.createElement('script'); imgscript.type = 'application/ld+json'; imgscript.text = JSON.stringify(imgData); var href = window.location.href; var hrefsum = href.indexOf("example"); if(hrefsum<0){ $('head').append(script); $('head').append(imgscript); }else if(hrefsum>0){ $('head').append(faqscript); } $('#remorejsa').remove();//添加后移除 }