绊夏微凉

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年5月17日

摘要: 前端数据缓存 为了解决数据被多个页面调用的问题 有三种方法: 1.sessionStorage 2.localStorage 3.cookie 参考链接:https://blog.csdn.net/qq_15204179/article/details/89066226 阅读全文
posted @ 2021-05-17 15:10 绊夏微凉 阅读(94) 评论(0) 推荐(0)

2021年5月14日

摘要: getTelText: function (val) { if (val) { var reg = /^(\d{3})\d{4}(\d{4})$/ return val.replace(reg, "$1****$2"); } return '' }, getPatientIdCardText: fu 阅读全文
posted @ 2021-05-14 17:43 绊夏微凉 阅读(91) 评论(0) 推荐(0)

2021年5月6日

摘要: input点击事件失效 原因: 异步导致绑定失败,需使用全局绑定事件 <div> <ul class="m-setting01" id="inputForm"> <li class="setting-con02" v-for="item in inputFormList"> <div class=" 阅读全文
posted @ 2021-05-06 09:16 绊夏微凉 阅读(1024) 评论(0) 推荐(0)

2021年4月29日

摘要: http请求url参数包含+号,被解析为空格 window.location.href = ctx + '/appointment/select-doctor?hosDeptId=' + hosDeptId.replace(/\+/g, "%2B"); 参考链接: https://www.jians 阅读全文
posted @ 2021-04-29 17:51 绊夏微凉 阅读(510) 评论(0) 推荐(0)

2021年4月15日

摘要: swing ​ swing是对awt的延伸,提供更多的功能。 基本 ​ swing窗口颜色的设置以及放置组件,一般都先获取窗口的容器,再设置容器的颜色,将组件放到容器中。 public class Application { public static void main(String[] args 阅读全文
posted @ 2021-04-15 11:34 绊夏微凉 阅读(84) 评论(0) 推荐(0)

2021年4月14日

摘要: GUI-键盘监听 ​ 键盘监听:使用键盘监听适配器(KeyAdapter),不用重写所有方法。 public class Application { public static void main(String[] args) { new MyFrame(); } } class MyFrame e 阅读全文
posted @ 2021-04-14 10:50 绊夏微凉 阅读(106) 评论(0) 推荐(0)

摘要: GUI-窗口监听 ​ 窗口监听:一般使用窗口的适配器(WindowAdapter),不用重写所有的方法。 ​ 窗口监听常用的方法: ​ windowActivated:窗口被激活 ​ windowClosing:窗口关闭 public class Application { public stati 阅读全文
posted @ 2021-04-14 10:48 绊夏微凉 阅读(106) 评论(0) 推荐(0)

摘要: GUI-画笔 ​ 自定义类,继承frame,重写paint方法 public class Application { public static void main(String[] args) { new MyFrame(); } } class MyFrame extends Frame{ pu 阅读全文
posted @ 2021-04-14 10:44 绊夏微凉 阅读(82) 评论(0) 推荐(0)

摘要: GUI-鼠标监听 ​ 鼠标监听:使用鼠标监听的适配器(MouseAdapter),不用重写所有方法。 public class Application { public static void main(String[] args) { new MyFrame(); } } class MyFram 阅读全文
posted @ 2021-04-14 10:42 绊夏微凉 阅读(148) 评论(0) 推荐(0)

2021年4月13日

摘要: GUI-事件监听+输入框 事件监听 public class Application { public static void main(String[] args) { new MyFrame(); // 点击按钮 } } class MyFrame{ public MyFrame() { ini 阅读全文
posted @ 2021-04-13 11:44 绊夏微凉 阅读(188) 评论(0) 推荐(0)