标签:io ar sp java on cti bs ef as
public ActionResult CheckCode()}
前台页面调用 <img id="imgCode" src="/Member/CheckCode?ID=1" width="100" onclick="ClickRemoveChangeCode()" alt="单击可刷新"
height="32" />
<a href="javascript:void(0);" onclick="ClickRemoveChangeCode()">换一张</a>
function ClickRemoveChangeCode() {
//首先我们获取到验证码的路径
var code = $("#imgCode").attr("src");
//然后重新给验证码的路径赋值
$("#imgCode").attr("src", code + "1");
}
标签:io ar sp java on cti bs ef as
原文地址:http://blog.csdn.net/luohuajiexiejuan/article/details/41446251