js传输图片路径
數據庫中存儲數據/commons/img/***.jpg格式的圖片路徑。
"<a οnclick=\"showImg(\'"+dataEle.imgPath.replace(/\\/g,'\\\\')+"\')\">查看圖片 "顯示時要.replace(/\\/g,'\\\\'),將所有\替換為\\才能傳輸路徑否則會報錯。
?
轉載于:https://www.cnblogs.com/aeolian/p/9534455.html
總結
- 上一篇: ios遍历模块的方式
- 下一篇: 搭建阿里云ecs服务器(一:购买)