- 博客(6)
- 收藏
- 关注
转载 H5动态添加行
可编辑表格 function addRow(){ var oTable = document.getElementById("oTable"); var tBodies = oTable.tBodies; var tbody = tBodies[0]; var tr = tbody.insertRow(tbody.rows.length); var td_1 = tr.insertCell(0)
2016-09-30 10:35:49 3161
原创 按钮添加行
function addRow(){ var oTable = document.getElementById("oTable"); var tBodies = oTable.tBodies; var tbody = tBodies[0]; var tr = tbody.insertRow(tbody.rows.length); var td_1 = tr.insertCell(0);
2016-09-30 10:34:20 327
原创 js 使用正则表达式验证url地址
var strRegex ='(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]';var url; var re=new RegExp(strRegex); if(url!="") { if (!re.test(url)) { alert("请输入正确的url地址"); return fal
2016-09-22 15:52:27 13530
原创 读取从begin到end文件内容,并编码
RandomAccessFile raf = null; File srcFile = new File(contextPath + srcFilePath); raf = new RandomAccessFile(srcFile, "r"); raf.seek(begin); byte[] bytes = new byte[end - begin + 1]; raf.read(byte
2016-09-07 09:58:15 719
原创 SSH实现上传进度条
package com.server.action.back; import org.apache.struts2.ServletActionContext; import javax.servlet.http.HttpSession; import com.server.data.State; import com.opensymphony.xwork2.ActionSupport; //
2016-09-07 09:41:41 1125
原创 httpclient post
public static JSONObject doRefresh(JSONObject json) { //http 4.5 CloseableHttpClient client = SSLClient.createSSLClientDefault(); JSONObject response = null; HttpPost post = new HttpPost(URL)
2016-07-05 10:47:59 279
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人