`
文章列表
function getRequestParameter(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配 var context = ""; if (r ...
select * from t_user into outfile "D:/user" fields terminated by ',' optionally enclosed by '"' lines terminated by '\n'; load data infile 'D:/user' replace into table tmp_user fields terminated by ',' optionally enclosed by '"' lines terminated by '\n' ;
git 创建远程分支。 git branch -a 查看所有分支 git checkout -b test01 创建本地test01分支 git push --set-upstream origin test01 把本地test01分支推送到远程 删除远程分支 git push  origin --delete test01 删除本地分支 git branch -d test01
1.本地初始化git目录 git init 2.新建文件并且写入内容 touch a.txt echo “new data” >> a.txt 3.添加到暂存区 git add . git commit -m “a.txt” 4.添加远程仓库 git remote add origin https://gitee.com/jianan/learnGit.git 5.本地仓库也远程仓库关联 git branch --set-upstream-to=origin/master master 6.拉取远程仓库内容到本地 这时候用git pull会提示(毕竟本地和远程仓库没啥关系 ...
String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); }

JS四舍五入

//四舍五入 function roundNumber(number,fractionDigits){ with(Math){ return round(number*pow(10,fractionDigits))/pow(10,fractionDigits); } }
取值 public String formatParamCode(String paramCode){ return paramCode.replaceAll("\\$", "").replaceAll("\\{", "").replaceAll("\\}", ""); } public String composeMessage(String data, Map<String,String> paramData) thr ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="12"> <profile kind="CodeFormatterProfile" name="SunnySystem" version="12"> <setting id="org.eclipse.jdt.core.formatter.comment ...
<html> <head> <title>jquery plugins</title> <style type="text/css"> #main{ width:300px; height:120px; } .main_box{ width:120px; height:100px; background:#CCC; margin:5px; float:left; color:#fff; ...
生成keystore keytool -genkey -alias android_SunnySystem.keystore -keyalg RSA -validity 20000 -keystore android_SunnySystem.keystore 签名 jarsigner -verbose -keystore androidSunnySystem.keystore -signedjar SunnyAlbum_final.apk SunnyAlbum.apk androidSunnySystem.keystore 签名认证 jarsigner -verify Su ...

SQL 成绩排名

CREATE TABLE `user_score` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT NULL, `score` int(3) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; INSERT INTO `user_score` VALUES ('1', 'zhangshuling', '100'); INSERT INTO `user_ ...
function loadPageLink(linkObj,page,total,pagesize,method){ var pagelink =""; if(total>0){ pagelink = "<div align=\"center\">"; var _first = "首页"; var _previous = "上一页"; var _next = "下一页"; var _last = ...

sql 行列转换

建表语句 /*Table structure for table `score` */ drop table if exists `score`; CREATE TABLE `score` ( `id` int(10) NOT NULL auto_increment, `score` int(3) default NULL, `subject` int(10) default NULL, `student` int(10) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARS ...
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource.BasicDataSource"> 我们继承这个类(org.apache.commons.dbcp.BasicDataSource.BasicDataSource) 然后复写 public synchronized void setPassword(String password) { System.out.println("password : " + pass ...
<%@include file%> 可以 共享父页面的变量 子页面不能设置字符集 与父页面编译成一组文件(.java,.class) <jsp:include page/> 可以带参数  page="test.jsp?p=hello" 编译成两组文件
Global site tag (gtag.js) - Google Analytics