<el-checkbox-group v-model="form.showProperty"> <el-checkbox v-for="(item,idx) in properties" :key="idx" :label="item.cid + item.name" :disabled="item.must">{{item.name}}</el-checkbox> &l…
Bootstrap select多选下拉框赋值 success: function (data) { var oldnumber = new Array(); $.each(data, function (i) { oldnumber.push(data[i].id); }); $('#editcolor .selectpicker').selectpicker('val', oldnumber);//默认选中 $('#editcolor .selectpicker').selectpicker…
关于复选框input[type=checkbox],其实在前面的文章中说过一次,当时主要关注点在设置复选框的状态,利用prop实现,今天继续关注一下复选框. 自己在项目中,遇到一个全选/全不选的需求,刚开始关注点没在这里,而是结构搭建完成之后,发现默认的input[type=checkbox]的范围有点小,就想着扩大其点击范围. 项目是使用bootstrap搭建,复选框是在表格的第一格内. 理一下当时的思路: 1.使用label标签,包裹住复选框,由于bootstrap对td和th都使用了pad…
用一个checkbox复选框做多个checkbox复选框的全选按钮,有一个复选框未被选择时,全选按钮的checked就为false,当所有checkbox都被选中时,全选按钮也被选中. 详解: 有两种方式使<input type="checkbox" />中的复选框被选中. 方法一:直接在HTML行间中添加checked属性.   eg:<input type="checkbox" checked /> 方法二:使用javascript使in…
项目需求需要使用ant-design-pro的弹出框表单并在表单出现时设置默认值 然而按照官方的示例给 <Input> 标签设置 defaultValue 时发现并没有效果.如下所示: <FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="项目名称"> {form.getFieldDecorator('ProjectName', { rules: [{ required: true,…
vue+elementUI中单选框el-radio设置默认值 如果后台返回的单选框的值是number:单选框的lable需要设置成 :lable='0';如下: <el-form-item label="仿牌选项:" prop="ifCod" size="mini" class='form-label'> <div id='radio' > <el-radio class='m0' :disabled="d…
1,引用Aspose.Cells  dll 2,using Aspose.Cells; 3, Workbook excel = new Workbook(); string strFilePath = System.Web.HttpContext.Current.Server.MapPath("~/File/ExportTemplate/test.xls"); //建立excel并打开模板文件,这种先定义好模板,然后再在模板上进行填写数据 excel.Open(strFilePath)…
<!DOCTYPE html> <html lang="zh"> <head> <title></title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="http…
//给eayui datebox设置初始值 $("#ctime").datebox("setValue", function(){ var date = new Date(); var ctime = date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate(); return ctime; });//获取datebox值var time = $("#ctime").datebox(&…
1:Struts2的默认访问后缀是.action(特别需要注意的是改了配置文件web.xml或者struts.xml需要重启服务器) 2:Struts2中常用的常量介绍:<!-- 一:全局配置 --> <!--1.请求数据编码  --><constant name="struts.i18n.encoding" value="UTF-8"/><!--2.修改struts2默认的自定义后缀 --><constant…