09 2021 档案
摘要:SELECT CONCAT('TRUNCATE TABLE ',table_name,';') FROM information_schema.tables WHERE table_schema='database_name' ; -- database_name为要删除的库
阅读全文
摘要:datagrid行删除操作: {title: '操作',field: 'control',width: 120,halign:'center',align: 'center', formatter: function (value,row,index) { var processLink = '<a
阅读全文
摘要:序列化后的数据可以通过Ajax向后台传递var params = jQuery("#iForm").formSerialize(); //对表单进行校验,所有字段都有效时,返回truevar isValid = $("#iForm").form('validate'); if (!isValid)
阅读全文
摘要:<%-- // 设置每隔1秒刷新一次--%> <%-- response.setIntHeader("Refresh", 15);--%>
阅读全文
摘要:子页面上: function addNew(){ var rows = jQuery('#mydatagrid').datagrid('getSelections'); if(rows.length <= 0){ jQuery.messager.alert("操作提示", "请选择至少一条记录!",
阅读全文
摘要:1.引入依赖 <dependencies> <!-- JWT--> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> </dependency> </dependencies> 2.创建JWT工
阅读全文
摘要:1 function xx(){ 2 //确认提示框 3 $.messager.confirm('提示', '确认XX吗?', function(r){ 4 if (r){ 5 6 7 } 8 }); 9 10 }
阅读全文
摘要:{title:'单价',field:'fPrice', width:60,align:'right',formatter: function(value,rowData){ if (rowData.quotationId!=''&&rowData.quotationId!=undefined){ v
阅读全文
摘要:1 /* 获取系统当前时间方法start */ 2 3 function datetime() { 4 var now = new Date(); 5 $('#createDate').val(now.getFullYear() + "-" 6 + (now.getMonth() + 1) + "-
阅读全文

浙公网安备 33010602011771号