`
geelong
  • 浏览: 120611 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
/*在字节流与字符流之间起桥梁作用的InputStreamReader与 OutputStreamWriter类, InputStreamReader使用指定的字符集(charSet)读取字节,解码为字符,OutPutStream使用指定的字符集将字符编码为字 节, 写入到输出流中 Charset类(java.nio.charset.Charset):要获取JVM当前可以使用的字符集,可以使用该类中的 static sortedMap availableCharset();下面利用该类中的availableCharsets()看一下在JVM中国有哪些字符集可以使用的 pac ...
package http; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.IOException; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import ...

httpconnection

    博客分类:
  • j2me
                            System.out.println(hc.getType());                 System.out.println(hc.getEncoding());                 System.out.println(hc.getPort());                 System.out.println(hc.getURL());                 System.out.println(hc.getRequestMethod());                 ...
package http; import java.io.DataInputStream; import java.io.IOException; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; imp ...
$(function() {     var cout=$("#totalblog").val();      //评论总数 }   以上参数获取需要放在 $(function){}中。意思是等dom对象都装载好后才获取     var auid=GetQueryString1("uid"); var blogid=GetQueryString1("bid");     function GetQueryString1(name)   //获取参数 {       var reg = new RegExp(&q ...
   +"<a href='javascript:void(0);' onclick=\"$.showRemarkText('"+RemarkID+"');\">"     第一层 “” 第二层\" \"  使用转义字符 第三层  ‘
function getrecommendImg2(img) {             $.ajax({         type: "GET",            //http请求方式         url: "../common/pic.php?figureid=" + img + "&picprop=3",    //服务器段url地址 //        data: "username=" + username,           //发送给服务器段的数据         ...
.MVC 控制层的作用 :接受 viewd 请求和数据,把数据传给 DAO 。在决定向用户显示的 view :View 处于 Web Tier 或者说是 Client Tier ,通常是 JSP/Servlet ,即页面显示部分。 Controller 也处于 Web Tier ,通常用 Servlet 来实现,即页面显示的逻辑部分实现。 Model 处于 Middle Tier ,通常用服务端的 javaBean 或者 EJB 实现。     MVC 英文即 M ...
{userName:'nihao',sex:'male',age:'23'}   {key:'value',key:'value'}
<input type="submit" name="button" id="button" value=" 登 陆 " onclick="login()"/>   function login(){     $.getJSON("./check.php",function(data) {         alert(data.userName);     }); }   回调函数不会执行   解决办法 1、把submit 改成button ...
    <a href="javascript:login();>  登陆</a>
$.extend({ getStrLength : function(str) {     var sum = 0;     for ( var i = 0; i < str.length; i++) {         if ((str.charCodeAt(i) >= 0) && (str.charCodeAt(i) <= 255))             sum = sum + 1;         else             sum = sum + 2;     }     return Math.floor(sum / 2); ...
Mysql之inner join,left join,right join详解 文章分类:PHP编程 首先借用官方的解释下: inner join(等值连接):只返回两个表中联结字段相等的行; left join(左联接):返回包括左表中的所有记录和右表中联结字段相等的记录; right join(右联接):返回包括右表中的所有记录和左表中联结字段相等的记录。 比如我们有xs、cj两个表 xs表                                 cj表 ---------------                  ----------- ...
总结: 1、父表类型 innodB 2、子表在外键的字段上建立索引 index create database test; use demo; user表: create table user ( userid integer not null auto_increment primary key, username varchar(12) not null ) type=innodb; 主要是在建password表的时候,对u ...
  create table people ( userid integer not null auto_increment primary key, username varchar(12) not null, age int );       alter table people add (   constraint ckc_age  check (age between 15 and 50)); insert into people (username,age) values('aa',60); insert into people (usernam ...
Global site tag (gtag.js) - Google Analytics