随笔分类 -  前端

摘要:"window.location.href"、"location.href"是本页面跳转 "parent.location.href"是上一层页面跳转 "top.location.href"是最外层的页面跳转 举例说明: 如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是 阅读全文
posted @ 2020-06-22 14:16 KeepSmiling_me 阅读(344) 评论(0) 推荐(0) 编辑
摘要:var user = {id:1, name:'zs', age:20}; var ele = '<a οnclick="edit(' + JSON.stringify(user).replace(/"/g, '&quot;') + ');">修改</a>'; 或者 var ele = '<a οn 阅读全文
posted @ 2020-06-08 15:48 KeepSmiling_me 阅读(777) 评论(0) 推荐(0) 编辑
摘要:<div class="inRadio RadioStyle"> <input type="radio" checked onclick="editWareHouseIt(this)" id="editOrInsHouse01" name="editOrInsHouse" value="01"> < 阅读全文
posted @ 2020-05-25 13:46 KeepSmiling_me 阅读(714) 评论(0) 推荐(0) 编辑
摘要:<div class="check-item"> <input type="checkbox" class="check-item-in" id="checkbox3">正常复选框 <label for="checkbox3"></label> </div> <div class="check-it 阅读全文
posted @ 2020-05-25 13:36 KeepSmiling_me 阅读(652) 评论(0) 推荐(0) 编辑
摘要:1.查找所有含有 id 属性的 div 元素 <div> <p>Hello!</p> </div> <div id="test2"></div> jquery代码:$("div[id]") 2.查找所有 name 属性是 newsletter 的 input 元素 <input type="chec 阅读全文
posted @ 2020-05-04 16:06 KeepSmiling_me 阅读(992) 评论(0) 推荐(0) 编辑
摘要:$(function(){ if (top != window){ top.location.href = window.location.href; } }) 在登录页面添加 阅读全文
posted @ 2020-04-16 18:11 KeepSmiling_me 阅读(765) 评论(0) 推荐(0) 编辑
摘要:侧滑按钮样式 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, u 阅读全文
posted @ 2020-01-06 15:51 KeepSmiling_me 阅读(284) 评论(0) 推荐(0) 编辑
摘要:富文本编辑器 WangEditor的使用 1.首先引入jar wangEditor.js 2.初始化wangEditor var E = window.wangEditor editor = new E('#notContect') editor.customConfig.uploadImgServ 阅读全文
posted @ 2020-01-02 12:54 KeepSmiling_me 阅读(268) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示