$(function() { var vhtml = ""; vhtml +="" ; $(document.body).append(vhtml); }); function openErrorReport(webCode,deptId,color){ var title = encodeURI(document.title); title = encodeURI(title); window.open('http://app.dg.gov.cn/u/error/getErrorDemo2?webCode='+webCode+'&deptId='+deptId+'&color='+color+'&title='+title+'&url='+window.location.href); }