摘要: <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 若久 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 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 若久 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: JDBCUtils工具类 阅读全文
posted @ 2019-04-03 16:16 若久 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 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 若久 阅读(978) 评论(0) 推荐(0) 编辑
摘要: 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 若久 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 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 若久 阅读(5736) 评论(0) 推荐(0) 编辑
摘要: 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 若久 阅读(198) 评论(0) 推荐(0) 编辑
摘要: <!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 若久 阅读(673) 评论(0) 推荐(0) 编辑
摘要: <!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 若久 阅读(480) 评论(0) 推荐(1) 编辑
摘要: <!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 若久 阅读(140) 评论(0) 推荐(0) 编辑