在js中为图片的src赋值时,src的值不能在开头用 破浪号~ <img id="aa" src="~/Content/Manager/no01.png" /> document.getElementById("aa").src = "~/Content/Manager/mtk02.png";