- 博客(10)
- 收藏
- 关注
原创 js防止重复点击
var isClick = true; //防止重复点击if (isClick) { isClick = false; //事件 //定时器 setTimeout(function() { isClick = true; }, 1000); //一秒内不能重复点击}
2019-11-25 17:50:44
257
原创 thymeleaf 中th:href动态的拼接参数
th:href="@{/web/shouye/kjzcdetails(id=${data.id},contenttype=${data.contenttype})}" th:href="@{'/web/shouye/kjzcdetails?id='+${data.id}+'&contenttype='+${data.contenttype}}"
2019-10-21 10:55:25
4656
原创 选中下啦选
<script>$(“#couid”).find(“option[value=‘${couid}’]”).attr(“selected”, true);</script>
2019-09-29 17:14:12
114
原创 复制方法
/** * 复制方法 * @param src * @param des * @throws Exception */ public static void copy(String src, String des) throws Exception { // 初始化文件复制 File file1 = new File(src); // 把文件里面内容放进数组 ...
2019-09-29 17:10:15
244
原创 oracle 创建用户设置权限
此命令的意思是创建一个名字为demo,密码为demo的用户create user demo identified by demo;此命令的意思是将权限授予demo这个用户。grant create session, create table, create view to demo;此命令的意思是管理员权限授权demo用户grant connect,resource,dba to dem...
2019-09-27 18:01:09
165
原创 解决传中文乱码
data:{id:1, type:encodeURI(encodeURI(‘商品’))}1、String type = request.getParameter(“type”);2、type = URLDecoder.decode(type, “UTF-8″);方法二:ajax配置contentType属性,加上charset=UTF-8在ajax方法中加入以下参数contentType...
2019-09-27 18:00:24
281
原创 创建多层文件
File file = new File(des);if(!file.getParentFile().exists()){file.getParentFile().mkdirs(); //创建”c:\test”文件夹}file.createNewFile(); //创建c:\test\abc.tx...
2019-09-27 17:59:51
159
原创 Java 回调机制
描述情景A class 的对象 B class 想拿到A classpublic static ConnectCallback callback;public interface ConnectCallback{void halderCall(ForwardingBufferQueue f);}用法callback.halderCall(f)B classpublic stat...
2019-09-27 17:59:05
80
原创 从网络上下载文件
public void downloadNet() throws MalformedURLException { URL url = new URL("webUrl"); try { URLConnection conn = url.openConnection(); InputStream inStream = conn.getInputStream(); FileOutp...
2019-09-27 17:57:11
268
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人