如何学好java

如何学好java,其实很简单,只要用心体会,慢慢积累!
posts - 106, comments - 7, trackbacks - 0, articles - 3
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

url=jsp?str="你好!" 
String areaName=(String)request.getParameter("areaname");
String dpt=new String(dptName.getBytes("ISO8859-1"),"UTF-8");

posted @ 2012-03-01 18:45 哈希 阅读(193) | 评论 (0)编辑 收藏

  apache-comcat配置虚拟主机和虚拟目录  jquery autocomplete 自动填充文本框、文本域
JS 导出excel,word实例  2011-10-10 11:55:00|  分类: 默认分类 |  标签:js  excel  word   |字号大

小 订阅
用js操作offace中的word,excel 必须首先确保你已经安装office,用js操作word,excel 用到了ActiveXObject类,它是专门用来调用windows操作中的程序的,下面是例子,直接复制到文本文件里,把后缀名改了就可以运行!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
<script type="text/javascript" language="javascript">
function ExcelExport(tableid)   
{   

  //检索浏览器  
            if(navigator.userAgent.indexOf("MSIE")<0){  
                alert('请用ie浏览器进行表格导出');  
                return ;  
            }  
            var oXL = null;   
            try {  
                oXL = GetObject("", "Excel.Application");  
            }  
            catch (E) {  
                try {  
                    oXL = new ActiveXObject("Excel.Application");  
                }  
                catch (E2) {  
                    alert("请确认:\n1.Microsoft Excel已被安装.\n2.工具 => Internet 选项=> 安全 => 设置 \"启用不安全的 ActiveX\"");  
                    return;  
                }  
            }  

    var table = document.getElementById(tableid);     
    var workbook = oXL.Workbooks.Add();   
     var sheet = workbook.ActiveSheet;   
     var sel = document.body.createTextRange();  //激活sheet
       
     //把table中的数据移到sel中   
     sel.moveToElementText(table);   
       
     sel.select(); //选中sel中所有数据   
     sel.execCommand("Copy");//复制sel中的数据    
      sheet.Columns("A:Z").ColumnWidth =20;//设置列宽  
     // sheet.Columns("B").ColumnWidth =35;  
      sheet.Rows(1).RowHeight = 35;//设置表头高  
     //将sel中数据拷贝到sheet工作薄中  
     sheet.Paste();           
     oXL.Visible = true; 
  //sheet.Save("F:\\TEST.XLS" ); 
     //通过打印机直接将Excel数据打印出来  
     //sheet.Printout;  
     //ax.UserControl = true;  
  oXL.Quit();
  oXL=null;
}   
</script>
</head>

<body>
<table width="100%" border="1" id="mytable">
  <tr>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
  </tr>
  <tr>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
  </tr>
  <tr>
     <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
  </tr>
  <tr>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
  </tr>
  <tr>
     <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
    <td>nihao</td>
  </tr>
</table>
<form id="form1" name="form1" method="post" action="">
  <label>
  <input type="button" name="Submit" value="导出excel" onclick="ExcelExport('mytable')" />
  </label>
</form>
<p>&nbsp;</p>
</body>
</html>

 

posted @ 2012-02-28 18:16 哈希 阅读(304) | 评论 (0)编辑 收藏

http://www.wujianrong.com/archives/2007/05/20jspajax.html      简单用例
http://www.ibm.com/developerworks/cn/web/wa-ajaxintro/          IBM—Ajax讲解
http://www.w3schools.com/ajax/ajax_example.asp                     Ajax—Example  W3CSchol



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
">

<html>
<head>
<script src="ajax.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page using AJAX</title>
</head>
<body>

<a onclick="sendRequest('GET','index.jsp')" href="#">Server Date Time:</a>
<div id="ajax_res">Server Date Time will replace this text.</div>
</body>
</html>

index.jsp
<html>
<body>
<%=new java.util.Date()%>
</body>
</html>

ajax.js
function createRequestObject(){
var req;
if(window.XMLHttpRequest){
//For Firefox, Safari, Opera
req = new XMLHttpRequest();
}
else if(window.ActiveXObject){
//For IE 5+
req = new ActiveXObject("Microsoft.XMLHTTP");
}
else{
//Error for an old browser
alert('Your browser is not IE 5 or higher, or Firefox or Safari or Opera');
}

return req;
}

//Make the XMLHttpRequest Object
var http = createRequestObject();

function sendRequest(method, url){
if(method == 'get' || method == 'GET'){
http.open(method,url);
http.onreadystatechange = handleResponse;
http.send(null);
}
}

function handleResponse(){
if(http.readyState == 4 && http.status == 200){
var response = http.responseText;
if(response){
document.getElementById("ajax_res").innerHTML = response;
}
}
}
run this application may be u get some clue

posted @ 2012-02-24 23:30 哈希 阅读(178) | 评论 (0)编辑 收藏

假设:
1、你的页面在Web-Root下,内容为:  <div id="showMsg"></div><input type="text" id="userName" />,所用编码为utf-8
2、你的servlet为:  HelloWorldServlet.java  映射路径为   servlet/helloWorldServlet
步骤:
1、引入jquery-1.6.4.min.js
2、编写id为userName的输入框的点击触发函数:
      $("#userName").keyup(function(){
            $.ajax({
                  type: "post",
                  url: "servlet/helloWorldServlet?userName="+$(this).val(),
                  dataType: "json",
                  success: function(data){
                        $("#showMsg").html(data.msg);//修改id为showMsg标签的html
                  }, error: function(){
                        alert("请求出错");
                  }
            })
      })
3、后台处理接收到的内容:
      request.setCharactorEncoding("utf-8");
      String userName = request.getParameter("userName");
      response.setCharactorEncoding("utf-8");
      PringWriter out = response.getWriter();
      out.print("{\"msg\":\"你好~~"+userName+"!\"}");

注意事项:
1、这里的编码统一为utf-8
2、请求路径servlet/helloWorldServlet为相对路径,因此你的页面必须在项目的Web-Root下(也就是默认的web文件夹下,名字可能因项目配置不同而改变)
网上的 Jquery ajax Demo 大多都是基于php 
很少 有java的 今天就把自己的Demo贴出来 和大家共同学习
现在就  Jquery ajax 的 $.ajax(),$.post(),$.get();

首先是  服务端的Servlet 演示这三个函数的用法对都是用的同一个 服务端
 package com.june.servlet;   
 
import javax.servlet.http.HttpServlet;  
import javax.servlet.http.HttpServletResponse;  
import javax.servlet.http.HttpServletRequest;  
import java.io.IOException;  
import java.io.PrintWriter;  
import javax.servlet.ServletException;  
 
public class jqueryAjaxServer extends HttpServlet {  
     public jqueryAjaxServer(){  
         super();  
     }  
     public void doGet(HttpServletRequest request,HttpServletResponse response)  
     throws IOException ,ServletException {  
         response.setContentType("text/html;charset=utf-8");  
         PrintWriter out=response.getWriter();  
         String account=request.getParameter("account");  
         if("iamcrzay".equals(account)){  
             out.print("Sorry,the user is exist");  
         }  
         else{  
             out.print("Congratulation,this accont you can use!!!!");  
         }  
         out.close();  
     }  
     public void doPost(HttpServletRequest request,HttpServletResponse response)  
     throws IOException ,ServletException {  
         this.doGet(request, response);  
     }  

下面是WEB.XML
Xml代码 
<?xml version="1.0" encoding="UTF-8"?> 
<web-app version="2.5"   
    xmlns="http://java.sun.com/xml/ns/javaee"   
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 
    <servlet> 
       <servlet-name>jqueryAjaxServer</servlet-name> 
       <servlet-class>com.june.servlet.jqueryAjaxServer</servlet-class> 
    </servlet> 
        <servlet-mapping> 
       <servlet-name>jqueryAjaxServer</servlet-name> 
       <url-pattern>/jqueryAjax</url-pattern> 
    </servlet-mapping> 
  <welcome-file-list> 
    <welcome-file>index.jsp</welcome-file> 
  </welcome-file-list> 
</web-app> 

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 <servlet>
    <servlet-name>jqueryAjaxServer</servlet-name>
    <servlet-class>com.june.servlet.jqueryAjaxServer</servlet-class>
 </servlet>
        <servlet-mapping>
    <servlet-name>jqueryAjaxServer</servlet-name>
    <url-pattern>/jqueryAjax</url-pattern>
 </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>

 

下面是Jsp页面
第一个是 jqueryAjax.jsp  本页使用的是$.ajax()
Html代码 
<%@ page language="java"  pageEncoding="utf-8"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head>    
    <title>jquery ajax</title>   
    <meta http-equiv="pragma" content="no-cache"> 
    <meta http-equiv="cache-control" content="no-cache"> 
    <meta http-equiv="expires" content="0">      
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
    <meta http-equiv="description" content="This is my page"> 
    <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
    <script language="javascript"> 
         $(function(){  
               $('.sumbit').click(function(){  
               if($('#account').val().length==0){  
                   $('.hint').text("用户名不能位空").css({"background-color":"green"});   
               }  
               else{  
               $.ajax({  
                 url:'jqueryAjax',  
                 data:{account:$('#account').val()},  
                 error:function(){  
                 alert("error occured!!!");  
                 },  
                 success:function(data){  
                  $('body').append("<div>"+data+"</div>").css("color","red");  
        
                 }  
                   
               });}  
               });  
               });  
                   
         
             
    </script> 
  </head> 
    
  <body> 
                <h3 align="center">jquery AjaX</h3> 
                <hr> 
                <label>请输入用户名 :</label> 
                <input id="account" name="account" type="text"> 
                <input class="sumbit" type="button" value="检测"> 
                <div class="hint"> 
                </div> 
  </body> 
</html> 

<%@ page language="java"  pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>jquery ajax</title>
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
 <script language="javascript">
      $(function(){
            $('.sumbit').click(function(){
            if($('#account').val().length==0){
                $('.hint').text("用户名不能位空").css({"background-color":"green"});
            }
            else{
            $.ajax({
              url:'jqueryAjax',
              data:{account:$('#account').val()},
              error:function(){
              alert("error occured!!!");
              },
              success:function(data){
               $('body').append("<div>"+data+"</div>").css("color","red");
  
              }
             
            });}
            });
            });
                
   
       
 </script>
  </head>
 
  <body>
                <h3 align="center">jquery AjaX</h3>
                <hr>
                <label>请输入用户名 :</label>
                <input id="account" name="account" type="text">
                <input class="sumbit" type="button" value="检测">
                <div class="hint">
                </div>
  </body>
</html>

 

第二个用的是  $.post()

Html代码 
<%@ page language="java"  pageEncoding="utf-8"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head>    
    <title>jquery ajax</title>   
    <meta http-equiv="pragma" content="no-cache"> 
    <meta http-equiv="cache-control" content="no-cache"> 
    <meta http-equiv="expires" content="0">      
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
    <meta http-equiv="description" content="This is my page"> 
    <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
    <script language="javascript"> 
         $(function(){  
             $('.sumbit').click(  
              function(){  
                if($('#account').val().length==0){  
                    $('.hint').text("The account is cant't be null").css({"color":"red","background-color":"yellow"});  
                }  
                else{  
                $.post("jqueryAjax","account="+$('#account').val(),function(data){  
                   $('.hint').text(data).css({"color":"red","background-color":"yellow"});  
                })  
                }  
             });  
         });             
    </script> 
  </head> 
    
  <body> 
                <h3 align="center">jquery Ajax</h3> 
                <hr> 
                <label>请输入用户名 :</label> 
                <input id="account" name="account" type="text"> 
                <input class="sumbit" type="button" value="检测"> 
                <div class="hint"> 
                </div> 
  </body> 
</html> 

<%@ page language="java"  pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>jquery ajax</title>
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
 <script language="javascript">
      $(function(){
          $('.sumbit').click(
           function(){
             if($('#account').val().length==0){
                 $('.hint').text("The account is cant't be null").css({"color":"red","background-color":"yellow"});
             }
             else{
             $.post("jqueryAjax","account="+$('#account').val(),function(data){
                $('.hint').text(data).css({"color":"red","background-color":"yellow"});
             })
             }
          });
      });       
 </script>
  </head>
 
  <body>
                <h3 align="center">jquery Ajax</h3>
                <hr>
                <label>请输入用户名 :</label>
                <input id="account" name="account" type="text">
                <input class="sumbit" type="button" value="检测">
                <div class="hint">
                </div>
  </body>
</html>

 

第三个是用的$.get()

Html代码 
<%@ page  pageEncoding="utf-8"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head>     
    <title>jquery get</title> 
      
    <meta http-equiv="pragma" content="no-cache"> 
    <meta http-equiv="cache-control" content="no-cache"> 
    <meta http-equiv="expires" content="0">      
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
    <meta http-equiv="description" content="This is my page"> 
    <script src="js/jquery-1.2.6.js" type="text/javascript"></script> 
    <script type="text/javascript"> 
         $(function(){  
                $('.sumbit').click(function(){  
                      if($('#account').val().length==0){  
                         $('.hint').html("用户名不能位空!!!").css({"color":"#ffoo11","background":"blue"});  
                      }  
                      else{  
                          $.get("jqueryAjax","account="+$('#account').val(),  
                               function(data){  
                                $('.hint').html(data).css({"color":"#ffoo11","background":"green"});  
                          });  
                      }  
                });  
         });  
    </script> 
 
  </head> 
    
  <body> 
        <h3 align="center">jquery AjaX</h3> 
                <hr> 
                <label>请输入用户名 :</label> 
                <input id="account" name="account" type="text"> 
                <input class="sumbit" type="button" value="检测"> 
                <div class="hint"> 
                </div> 
  </body> 
</html> 

<%@ page  pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>  
    <title>jquery get</title>
   
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <script src="js/jquery-1.2.6.js" type="text/javascript"></script>
 <script type="text/javascript">
      $(function(){
             $('.sumbit').click(function(){
                   if($('#account').val().length==0){
                      $('.hint').html("用户名不能位空!!!").css({"color":"#ffoo11","background":"blue"});
                   }
                   else{
                       $.get("jqueryAjax","account="+$('#account').val(),
                            function(data){
                             $('.hint').html(data).css({"color":"#ffoo11","background":"green"});
                       });
                   }
             });
      });
 </script>

  </head>
 
  <body>
        <h3 align="center">jquery AjaX</h3>
                <hr>
                <label>请输入用户名 :</label>
                <input id="account" name="account" type="text">
                <input class="sumbit" type="button" value="检测">
                <div class="hint">
                </div>
  </body>
</html>

 
http://iamcrzay.iteye.com/blog/237940 
 
 
 
 

posted @ 2012-02-24 16:16 哈希 阅读(3996) | 评论 (3)编辑 收藏

1、将数组转化成字符串,用特殊字符如“|”将数组的元素隔开,用普通的字符串参数传递

2、使用json方式传递参数

解析

C#后台得到的是个string
string objStr = HttpContext.Current.Request["objStr"];

objStr内容([{"0": "a", "1": "b", "2": "c", "3": "d"}, {"0": "aa", "1": "bb", "2": "cc", "3": "dd"}{"0": "aa", "1": "bb"}])


/// <summary>
  /// 从JS数组中解析出JSON对象返回该对象的字符串表示
  /// </summary>
  /// <param name="ArrayStr"></param>
  /// <returns></returns>
  private static string GetJsonStr(string ArrayStr)
  {
  //ArrayStr="[{'0': 'a', '1': 'b', '2': 'c', '3': 'd'},{'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'},{'0': 'aa', '1': 'bb'}]";
  string StrJson = ArrayStr;

  //将"[{"和"}]"去除;
  //StrJson="'0': 'a', '1': 'b', '2': 'c', '3': 'd'},{'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'},{'0': 'aa', '1': 'bb'";  
  StrJson = StrJson.Substring(2, StrJson.Length - 4);

  //将“},{”替换为“|”便于分割成数组
  //StrJson="'0': 'a', '1': 'b', '2': 'c', '3': 'd'|'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'|'0': 'aa', '1': 'bb'";  
  StrJson = StrJson.Replace("},{", "|");  
   
  //以“|”为分隔符将每个JSON对象分割成字符串
  /*结果为:strjson[0]="'0': 'a', '1': 'b', '2': 'c', '3': 'd'";
  strjson[1]="'0': 'aa', '1': 'bb', '2': 'cc', '3': 'dd'";
  strjson[2]="'0': 'aa', '1': 'bb'";*/
  return StrJson.Split('|');
  }

posted @ 2012-02-20 22:16 哈希 阅读(206) | 评论 (0)编辑 收藏

ask.jsp

<script language="javascript" type="text/javascript">
function Open()
{

window.open('<%=path%>/jsp/answer.jsp' ,'_blank','top=250,left=300,width=500 height=100');
}
</script>

  <body>
 <form   onsubmit= "return  new_window(); " >
  <input type="text" name="tbValue"><a href="javascript:" onclick="Open();">Open http://www.dwww.cn </a>
  
 </form>
  </body>

answer.jsp

 <script language="javascript" type="text/javascript">
  function SetValue(value)
  {
  self.opener.document.all("tbValue").value=value;
  self.close();
  }
  </script>

 
 
<body>
    Values:<br/>
<a href="javascript:SetValue('1')">value 1</a><br/>
<a href="javascript:SetValue('2')">value 2</a>

  </body>

 





posted @ 2012-02-19 12:56 哈希 阅读(173) | 评论 (0)编辑 收藏

a href 不让页面跳转

不可以跳转
<a href="javascript:;" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
location.href不跳转测试1</a>  
<a href="javascript:void(0);"
onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
location.href不跳转测试2</a>  


可以跳转
<a href="javascript:void(0);"
onclick="javascript:ToUrl('http://www.jingzhengli.cn');return false;">
location.href不跳转测试3</a>  
<a href="#" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
location.href不跳转测试4</a>  
<a href="###" onclick="javascript:ToUrl('http://www.jingzhengli.cn');">
location.href不跳转测试5</a> 
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/muzai/archive/2010/11/22/6026786.aspx

posted @ 2012-02-17 13:22 哈希 阅读(1153) | 评论 (0)编辑 收藏


第一种:
    <script language="javascript" type="text/javascript">
           window.location.href=
"login.jsp?backurl="+window.location.href;
    </script>

第二种:
    <script language=
"javascript">
alert(
"返回");
window.history.back(-1);
   </script>

第三种:
   <script language=
"javascript">
window.navigate(
"top.jsp");
  </script>

第四种:
   <script language=
"JavaScript">
          self.location='top.htm';
   </script>

第五种:
   <script language=
"javascript">
          alert(
"非法访问!");
          top.location='xx.jsp';
   </script>

posted @ 2012-02-16 23:09 哈希 阅读(161) | 评论 (0)编辑 收藏

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 显示隐藏列 </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function setHiddenCol(oTable,iCol)//Writed by QQ:190988779 at 2007-7-24 11:14:09
{
    for (i=0;i < oTable.rows.length ; i++)
    {
        oTable.rows[i].cells[iCol].style.display = oTable.rows[i].cells[iCol].style.display=="none"?"block":"none";
    }
}
function setHiddenRow(oTable,iRow)//Writed by QQ:190988779 at 2007-7-24 11:14:09
{
    oTable.rows[iRow].style.display = oTable.rows[iRow].style.display == "none"?"block":"none";
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<TABLE id="Table1" cellSpacing="1" cellPadding="1" border="1">

<TR> <TD width="20%">00</TD> <TD width="20%" bgcolor="#E3E3E3">01</TD> <TD width="20%">02</TD></TR>
<TR> <TD width="20%" bgcolor="red">10</TD> <TD width="20%" bgcolor="green">11</TD> <TD width="20%" bgcolor="red">12</TD></TR>
<TR> <TD width="20%">20</TD> <TD width="20%" bgcolor="#E3E3E3">21</TD> <TD width="20%">22</TD></TR>
</TABLE> </P>


<INPUT id="btnHiddenCol" type="button" value="显示/隐藏第2列" name="btnHiddenCol" onclick="setHiddenCol(document.getElementById('Table1'),1)">
<INPUT id="btnHiddenRow" type="button" value="显示/隐藏第2行" name="btnHiddenRow" onclick="setHiddenRow(document.getElementById('Table1'),1)">
</BODY>
</HTML>

posted @ 2012-02-15 11:08 哈希 阅读(859) | 评论 (0)编辑 收藏

oracle数据库的配置

一、Oracle的配置

1、配置net manager

  依次选择开始—>Oracle – OraHome92>Configuration and Migration Tools>Net Manager

选择本地—>服务命名,点击左侧绿色加号 

输入Net服务名 172.30.4.205_ora91 点击下一步 

选择TCP/IPInternet协议) 点击下一步 

输入主机名172.30.4.205 点击下一步 

选择(Oracle8i或更高版本)服务名:ora91  点击下一步 

点击测试 

选择更改登陆,输入用户名xiecha,口令xiecha 

点击确定,出现测试成功后选择关闭

点击完成 

保存网络配置 
参见网址:http://wenku.baidu.com/view/7685da64783e0912a2162aa9.html

posted @ 2012-02-09 11:56 哈希 阅读(153) | 评论 (0)编辑 收藏

仅列出标题
共11页: 上一页 1 2 3 4 5 6 7 8 9 下一页 Last