会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
若久
博客园
首页
新随笔
联系
订阅
管理
2019年7月15日
在循环中设置点击事件
摘要: <c:forEach var="a" begin="1" end="5"> <button value="${a}" onclick="dian(this)">1</button></c:forEach><script> function dian(a) { alert($(a).val()) }<
阅读全文
posted @ 2019-07-15 21:00 若久
阅读(718)
评论(0)
推荐(0)
2019年5月8日
pl/sql循环输出时不进行换行
摘要: declare -- 定义循环所需的初始值 i number(8):=0; -- 定义一个空字符串 a varchar2(1000):='';begin -- 开启循环 loop -- 改变循环变量的值 i:=i+1; -- 退出循环条件 exit when i>100; -- 拼接字符串 a:=a
阅读全文
posted @ 2019-05-08 09:49 若久
阅读(1097)
评论(0)
推荐(0)
2019年4月3日
阿里云链接池
摘要: JDBCUtils工具类
阅读全文
posted @ 2019-04-03 16:16 若久
阅读(280)
评论(0)
推荐(0)
2019年4月2日
循环获取数据库中的值,并存储到集合中
摘要: package com.zdy.getxxx;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.util.HashSet;import java.uti
阅读全文
posted @ 2019-04-02 20:32 若久
阅读(992)
评论(0)
推荐(0)
关于getResource和getClassLoader().getResource()
摘要: package com.zdy.test;import java.net.URL;public class URLTest { public static void main(String[] args) { // 获取当前路径下的某个文件的URL路径 URL resource = URLTest.
阅读全文
posted @ 2019-04-02 16:10 若久
阅读(949)
评论(0)
推荐(0)
2019年3月20日
使用正则表达式判断邮箱格式是否正确
摘要: public class RegexDemo { public static void main(String[] args) { // 定义一个邮箱 String a = "1563435@qq.com"; // 使用正则表达式判断 boolean matches = a.matches("[A-
阅读全文
posted @ 2019-03-20 08:28 若久
阅读(5757)
评论(0)
推荐(0)
2019年3月12日
java ArrayList集合简单使用
摘要: import java.util.ArrayList;public class homework{ public static void main(String[] args){ ArrayList<Goods> a = new ArrayList<Goods>(); a.add(addShop("
阅读全文
posted @ 2019-03-12 08:31 若久
阅读(204)
评论(0)
推荐(0)
2019年3月6日
用jq完成城市选择
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-1.8.3.js"></script> <script type="text/javascript"> $(funct
阅读全文
posted @ 2019-03-06 08:29 若久
阅读(678)
评论(0)
推荐(0)
2019年3月1日
判断是否为空
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function show(id,info){ var el = document.getEleme
阅读全文
posted @ 2019-03-01 11:57 若久
阅读(510)
评论(0)
推荐(1)
2019年2月28日
猜数字游戏
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> var sum = parseInt(Math.random()*10
阅读全文
posted @ 2019-02-28 08:16 若久
阅读(144)
评论(0)
推荐(0)
下一页
公告