2021年3月15日
摘要: 源代码: <template slot-scope="scope"> <el-button type="warning" @click="edit(scope.row)">编辑</el-button> <el-button type="danger" @click="delete(scope.row 阅读全文
posted @ 2021-03-15 22:15 郑江 阅读(262) 评论(0) 推荐(0) 编辑
  2021年3月10日
摘要: 语法: 使用for(let index in 对象名){ var 获得得属性值 = 对象名[index]; } 以下是示例代码: <p id="p">循环遍历对象得属性</p><script> var t = ""; var person = {name: "张三", age: 23, hobby: 阅读全文
posted @ 2021-03-10 19:06 郑江 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 表格全选,全不选,反选,第一行选择框选中其他全选中 代码如下: <table> <caption>学生信息表</caption> <tr> <th><input type="checkbox" id="aaa"></th> <th>编号</th> <th>姓名</th> <th>性别</th> <t 阅读全文
posted @ 2021-03-10 16:43 郑江 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 格式:/^开头,$/结尾 正则表达式: let reg1 = /^[A-Za-z0-9]{6,16}$/; let reg2 = /^[0-9]{6}$/; 判断表单输入得信息是否正确 let 返回boolean值 = reg1.test(表单数据); let 返回boolean值 = reg2.t 阅读全文
posted @ 2021-03-10 15:51 郑江 阅读(29) 评论(0) 推荐(0) 编辑
摘要: <div> 姓名:<input id="i1" type="text" name="name"> 年龄:<input id="i2" type="text" name="age"> 性别:<input id="i3" type="radio" name="gender" value="男">男 <i 阅读全文
posted @ 2021-03-10 15:27 郑江 阅读(37) 评论(0) 推荐(0) 编辑