亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - 異步上傳圖片無(wú)法即時(shí)回顯
阿神
阿神 2017-04-18 10:53:11
0
3
580

我用ajax+struts2將文件上傳到了項(xiàng)目下的指定路徑,在不刷新頁(yè)面的情況下無(wú)法正常顯示圖片,有什么解決辦法嗎?求大佬指點(diǎn)。

阿神
阿神

閉關(guān)修行中......

reply all(3)
洪濤

Just check this in the workspace

迷茫

It is best to rename the image path saved on the server, otherwise there will be caching problems.
After ajax uploads the image, the server generates the path name and returns it to the front desk. The front desk then sets a new image path.

伊謝爾倫

The image saved to the server needs to have a unique name, then return the full path of the image to ajax, and then modify the attributes that need to be echoed

You can use the returned path to try it directly in the browser. If it works in the browser, then the page will also work

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template