Java+html+js
Java+html+js
Choco1ove
这个作者很懒,什么都没留下…
展开
-
数组中的字符串排序(首字母不区分大小写)
/* * 数组中的字符串排序(首字母不区分大小写) */var newArr =arr.sort(function(a,b){if(a.toLowerCase()<b.toLowerCase())return-1;if(a.toLowerCase()>b.toLowerCase())...原创 2021-07-07 14:04:48 · 316 阅读 · 0 评论 -
html标签中添加xml的内容-显示出节点
问题:如何实现html标签中添加xml的内容-显示出节点?解决:将xml的内容放入<xmp></xmp>节点中。示例如下:<html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><body><xmp> <?xml version="1.0" encoding="gb2312"?><EMPLOYEE>.原创 2021-02-25 17:58:17 · 243 阅读 · 0 评论 -
setInterval()函数的使用注意事项
//methodName:方法名;5000:每个5秒执行一次var taskInterval = setInterval(methodName, 5000);function methodName(){ alert("hello world!");}注意事项:1、setInterval比较耗资源,可以在某一个合适的时机将其关闭clearInterval(OptInterval);2、setInterval内部应该避免使用同步请求,否则会在定时任务执行过程中造成比较严重...原创 2020-05-28 16:21:28 · 807 阅读 · 0 评论 -
JAVA调用外部工具(7-Zip)解压zip文件
1、下载安装7-Ziphttps://www.7-zip.org/2、代码实现2、1maven依赖<dependencies> <!-- https://mvnrepository.com/artifact/com.github.junrar/junrar --> <dependency> <groupId>com.github.junrar</groupId> <artifactId>jun.转载 2020-06-08 19:07:16 · 572 阅读 · 0 评论