Response.Write("<script>alert(\'" + picPath + "\');<"+"/script>"); 在输出这句话的时候应该注意 </不能同时一起出现这个问题纠结了我好久。