`
wxq594808632
  • 浏览: 260399 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
如题,废话不多说。 JSP页面 hello.jsp   <%@ page contentType="text/html; charset=GBK" %> <html> <head> <title>AJAX提交页面</title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <script type="text/javascript" ...
import java.awt.image.BufferedImage; import java.io.BufferedInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.net.URL; public class ReturnImgWH { //读取远程url图片,得到宽高 public int[] returnImgWH(String i ...

SQL多条件排序

如题 默认排序方式为asc,可省略... select * from table order by t1 desc, t2 desc ,t3 desc;  
  String.prototype.trim = function() { //return this.replace(/[(^\s+)(\s+$)]/g,&quot;&quot;);//會把字符串中間的空白符也去掉 //return this.replace(/^\s+|\s+$/g,&quot;&quot;); // return this.replace(/^\s+/g,&quot;&quot;).replace(/\s+$/g,&quot;&quot;); }    測試如下:   ...
  import java.awt.*; import java.awt.image.*; import java.io.*; import javax.swing.*; import com.sun.image.codec.jpeg.*; public class WaterMark { /** */ /** * 给图片添加水印 * * @param filePath * 需要添加水印的图片的路径 * @param markContent * 水印的文字 * @param markC ...
js代码   //密码强度; function PasswordStrength(showed) { this.showed = (typeof (showed) == "boolean") ? showed : true; this.styles = new Array(); this.styles[0] = {backgroundColor:"#EBEBEB", borderLeft:"solid 1px #FFFFFF", borderRight:"solid 1px #BEBEBE", b ...
首先说下单个域名tomcat的配置 1.安装tomcat 在安装的时候设置访问端口为80 2.部署项目 部署项目到tomcat的webapps/root目录下。 3.设置访问首页为index.jsp  在web.xml中加入 <welcome-file-list> <welcome-file>Index.jsp</welcome-file> <welcome-file>/index.jsp</welcome-file> </welcome-file-list>   域名解析就不说 ...
javascript中存在几种对URL字符串进行编码的方法:escape(),encodeURI(),以及encodeURIComponent()。这几种编码所起的作用各不相同。 escape() 方法: 采用ISO Latin字符集对指定的字符串进行编码。所有的空格符、标点符号、特殊字符以及其他非ASCII字符都将被转化成%xx格式的字符编码(xx等于该字符在字符集表里面的编码的16进制数字)。比如,空格符对应的编码是%20。不会被此方法编码的字符: @ * / +encodeURI() 方法:把URI字符串采用UTF-8编码格式转化成escape格式的字符串。不会被此方法编码的字符:! @ ...
Global site tag (gtag.js) - Google Analytics