swfobject 传递参数
当我们用swfobject的时候,传递参数一般是so.addVariable("xmlPath","a.asp"),但是如果我们想传带&号的参数,如a.asp?id=1&num=2?
在flash中使用的时候只需要unescape(xmlPath)就可以得到正确的值了... ? //加载flash图表 function loadSwf(siteID,strDate,strEDate,lType,computeType) { var flashvars = { "data-file": escape("/zh-CN/Chart/WebSiteHistoryLine?siteId="+siteID + "&sDate="+strDate+"&eDate="+strEDate+"&lType="+lType+"&strPage="+encodeURIComponent(strPUrl)+"&computeType="+computeType) }; //这里是数据源 swfobject.embedSWF("@Url.Content("~/Content/ofc/open-flash-chart.swf")","months","750","300","9.0.0","expressInstall.swf",flashvars); } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |