<td>
<a href="${servePath}/file/download?fileName=${object.fileName}&&hdfsPath=${object.hdfsPath}" title="下载"><img src="${staticServePath}/app/lypjxt/images/edit.png" id="checkbox2" />下载</a>
<a href="${servePath}/file/update?fileName=${object.fileName}&&hdfsPath=${object.hdfsPath}" title="更新" οnclick="return update()" ><img src="${staticServePath}/app/lypjxt/images/edit.png" id="checkbox2" />更新</a><a href="${servePath}/file/download?fileName=${object.fileName}&&hdfsPath=${object.hdfsPath}" title="删除" οnclick="return del()" ><img src="${staticServePath}/app/lypjxt/images/edit.png" id="checkbox2" />删除</a>
</td>
js代码
<!-- 删除文件的提示 -->
<script type="text/javascript">
function del(){
if(confirm("真的要删除该文件吗?")){
return true;
}else{
return false;
}
};
/*更新文件的提示 */
function update(){
if(confirm("真的要删除该文件吗?")){
return true;
}else{
return false;
}
};