实例
文章平均质量分 51
weixin_41696089
这个作者很懒,什么都没留下…
展开
-
vue中图片上传及回显
在vue中图片上传到服务器下指定路径,并实现根据图片路径调取后台接口返回图片流在vue页面展示图片。原创 2022-10-28 08:32:30 · 6560 阅读 · 0 评论 -
Rest接口开发返回json
public class ResultApi {/** * 日志 */private static final Logger LOG = LoggerFactory.getLogger(ResultApi.class);@ResponseBodypublic static String getHttpInterface(String param1,String path) throws Exception{ LOG.info("getHttpInterface======>>原创 2021-10-11 21:51:54 · 481 阅读 · 0 评论 -
JS-表单多行数据提交
function save() { $('body').mask("保存中"); var i=0; var actionListName="EntityList"; $("#rows > tr").each(function(){ var dd=$("td",this).each(function(){//循环当前行td var input; var select; var name原创 2020-12-10 21:32:19 · 437 阅读 · 0 评论 -
js打印页面实例
跳转方法function print(contract_id){ var dw=unitid,rq=today; if(isNull(select_unit).length>0){dw=select_unit}; if(isNull(select_date).length>0){rq=select_date}; window.open(basePath+'Security/Risk/showPrint?project_unitid='+dw+'&risk_date='+rq+'原创 2020-12-10 21:30:00 · 176 阅读 · 0 评论 -
java中下载文件实例
跳转方法window.location.href=basePath+'Security/Sbxx/download?file_id='+id;后台//8、信息设备维护附件查询@RequestMapping("download")public void Download(HttpServletRequest request, HttpServletResponse response,Equipment_BaseEntity entity){ entity = baseService.fil原创 2020-12-10 21:27:41 · 154 阅读 · 0 评论 -
h5SUI图片上传空间模拟微信朋友圈
Html <!DOCTYPE html><html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:method="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>井场勘查&l原创 2020-12-10 21:25:29 · 550 阅读 · 0 评论 -
pc端图片上传模拟微信朋友圈图片选择
Html页面<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />&原创 2020-12-10 21:20:40 · 307 阅读 · 0 评论 -
PDF及Word生成
PdfControllerpackage upc.jxzygl.controller.Security.pdf;import com.aspose.words.Shape;import com.aspose.words.*;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.原创 2020-12-10 21:16:41 · 136 阅读 · 0 评论 -
Easyui综合实例(表格编辑、添加删除行、下拉框关联、表头数据筛选)
设备信息维护 });gridTitlebindingClick();});//=================自定义方法var editIndex = undefined;function endEditing(){if (editIndex == undefined){return true}if ($(’#dataBasic’).datagrid(‘validateRow’, editIndex)){$(’#dataB...原创 2020-11-20 21:47:56 · 411 阅读 · 0 评论 -
Excel导入、合并行已处理
1、按钮或连接调用上传页面 function showImportDialog(){ diag = new Dialog(); diag.Title = "Excel导入" ; diag.URL = basePath + "JumpController/param/Security.Risk.import_risk?flag=" + encodeURI("fxnr"); diag.Width = 500; diag.Height = 100; diag.原创 2020-11-20 21:36:02 · 380 阅读 · 0 评论 -
Excel导出实列
1、html调用<td><button type="button" onclick="exportlist()"><span class="icon_export">导出</span></button></td>function exportlist() {window.location.href=basePath+"Security/Risk/export_all?unit_id="+encodeURI(unit_id)+"&原创 2020-11-20 21:42:43 · 223 阅读 · 0 评论