某次面试中被问到过,类似的还有用文本实现js的撤销恢复功能。 核心原理: 利用浏览器提供的copy命令参考链接注意: 对ipad、iphone等苹果移动端需做单独处理 document.execCommand("copy"); 如果是复制输入框里的内容,可以通过 select() 方法,选中输入框的 ...
分类:
Web程序 时间:
2020-05-24 13:57:44
阅读次数:
64
Python环境搭建 目录环境 配置文件 所设的工作路径等等需要挂载需要运行的py文件 requirement.txt是python项目可导出的该项目所需依赖包 RUN去安装requirement.txt内记录的所需依赖包,build时装到镜像中 CMD在启动容器时,参数为空执行默认hello.py ...
分类:
其他好文 时间:
2020-05-23 00:06:43
阅读次数:
67
C#实现异步阻塞TCP(SocketAsyncEventArgs,SendAsync,ReceiveAsync,AcceptAsync,ConnectAsync) ...
客户端: public class UdpClientManager { //接收数据事件 public Action<string> recvMessageEvent = null; //发送结果事件 public Action<int> sendResultEvent = null; //本地监 ...
分类:
其他好文 时间:
2020-05-22 00:06:36
阅读次数:
49
目录: Mockplus Axure RP Justinmind Invision Flinto Proto.io Baisamiq_Mockups 墨刀 POP(Prototyping on Paper) UXPin Teambition 蓝湖 1. Mockplus 产品简介: Mockplus ...
分类:
其他好文 时间:
2020-05-21 11:52:46
阅读次数:
89
在开发中总会根据用户请求的HttpServletRequest去获取用户ip 所以封装了一个工具类 可以减少重复性操作 上代码 工具类 package com.cm.weixin.pay.utils; import java.net.InetAddress;import java.net.Unkno ...
分类:
Web程序 时间:
2020-05-18 16:25:48
阅读次数:
66
1、简述lvs四种集群特点及使用场景1、lvs-nat:修改请求报文的目标IP,多目标IP的DNAT本质是多目标IP的DNAT,通过将请求报文中的目标地址和目标端口修改为某挑出的RS的RIP和PORT实现转发(1)RIP和DIP应在同一个IP网络,且应使用私网地址;RS的网关要指向DIP(2)请求报文和响应报文都必须经由Director转发,Director易于成为系统瓶颈(3)支持端口映射,可修
分类:
其他好文 时间:
2020-05-16 09:15:59
阅读次数:
87
1. 判断是ios还是android let u = navigator.userAgent, let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //glet isIOS = !!u.match(/\(i[^; ...
分类:
移动开发 时间:
2020-05-15 18:05:52
阅读次数:
100
create table order_ipad( id bigint(20) unsigned not null auto_increment,comment '自增主键', uuid bigint(20) unsigned not null default '0' comment '用户id', ...
分类:
其他好文 时间:
2020-05-15 17:55:14
阅读次数:
55
概念 Responsive design,意在实现不同屏幕分辨率的终端上浏览网页的不同展示方式。通过响应式设计能使网站在手机和平板电脑上有更好的浏览阅读体验。 步骤 1. 设置 Meta 标签 大多数移动浏览器将HTML页面放大为宽的视图(viewport)以符合屏幕分辨率,可以使用视图的meta标 ...
分类:
其他好文 时间:
2020-05-14 22:20:28
阅读次数:
89