??xml version="1.0" encoding="utf-8" standalone="yes"?>91ph在线,国产精品一区二区在线观看,欧美日韩福利视频http://www.aygfsteel.com/lovo-xiaoche/?/description>zh-cnMon, 19 May 2025 00:36:45 GMTMon, 19 May 2025 00:36:45 GMT60数组Q集?/title><link>http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93271.html</link><dc:creator>?/dc:creator><author>?/author><pubDate>Thu, 11 Jan 2007 13:53:00 GMT</pubDate><guid>http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93271.html</guid><wfw:comment>http://www.aygfsteel.com/lovo-xiaoche/comments/93271.html</wfw:comment><comments>http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93271.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/93271.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/93271.html</trackback:ping><description><![CDATA[ <p>1.10 星期?br />  array 数组:数组是一个具有相同类型的数据值得索引集合.</p> <p>  数组x:double[] rainfull; 推荐<br />           ?br />    double rainfull[]; <br /> <br />   引用数据cd:接口,对象,数组.</p> <p>   rainfull = new double[12];<br />   创徏一个长度ؓ12的数l?把空间地址赋给rainfull.</p> <p>   数组索引是从0开?没特D要求情况下,索引一般都是从0开?<br />  <br />   动态数l?-自动增长</p> <p>   数组.length (属?<br />   String.leng()  (Ҏ)</p> <p>   String[] m = {"a","b","c"...}<br />   在申明初始化?数组的大设?</p> <p>   int size;<br />   int[] number;<br />   size = Integer.parseInt(JOptionPane.showMessageLag(null,"size of .."));   <br />   number = new int[size];   (Ҏ也不是很?因ؓsize不一?对象也就不一?)<br />   可变型数l?<br />    <br />   对象数组<br />   数组的类型不是基本数据类?<br />   Person[] person;<br />   person = new Person[20];<br />   对象数组每个元素都是一个对?没初始化时是null.</p> <p>   Person[0] = new Person[]; 创徏对象</p> <p>1.11 星期?br />   JCF--java集合框架<br />   Java Collection Framework<br />   JCF是什?<br />   是java语言设计出来的针对底层算法和数据l构的一pdc?<br />   在哪用JCF?<br />   凡是提到数据l构和算法的都可以用JCF<br />   Z么用JCF?<br />   让程序员的重Ҏ在业务上,而不是如何去写算法上.<br />   <br />   接口                 Collection<br />                          |    |<br />                          |    |<br />                    set----     ----list               map<br /> <br />   实现            HashSet          ArrayList          SoredMap<br /> <br />   法            Collections</p> <p>   以上构成JCF<br />  <br />   list 列表     map 映射<br />   list的重要特征是帮我们管理大量对?/p> <p>   ArrayList 数组列表<br />   LinkedList (单双)链表 (不是q箋?通过指针q接)</p> <p>   ArrayList al = new ArrayList();<br />   al.add(1);<br />   al.add(4);<br />   al.add(2);  增加<br />   ...... </p> <p>   al.remove;  删除</p> <p>   System.out.println(al);<br />   System.out.println(al.get(3)); </p> <p>   排序<br />   Collections.sort(al); 到?br />   Collections.max(al);<br />   Collections.min(al);<br />   Collections.sort(al,Collection.reverseOrder);  大到?br />  <br />   Vector ?ArrayList 很相?br />   向量</p> <p>   如何便利集合<br />   Iterator it = al.iterator(); q带?挨个讉K<br />   while(it.hasNext())<br />   {<br />      System.out.println(al.next); <br />   }</p> <p>   HashMap 不允讔R?br />   TreeMap 自动排序<br />  <br />   treeMap tr = new TreeMap();<br />   tr.put(1,1);  (key,value)<br />   .......</p> <p>   Object[] o = tr.keySet().ToArray();<br />   Object[] o = tr.value().ToArray();                <br />  <br />   System.out.println(tr);</p> <p>   for(int i = 0;i<o.leng;i++)<br />   {<br />      System.out.println(0[i]); <br />   }<br /></p> <img src ="http://www.aygfsteel.com/lovo-xiaoche/aggbug/93271.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/lovo-xiaoche/" target="_blank">?/a> 2007-01-11 21:53 <a href="http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93271.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>java GUIhttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93261.html?/dc:creator>?/author>Thu, 11 Jan 2007 13:11:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93261.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/93261.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93261.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/93261.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/93261.html12.25!~12.27
GUI
1 容器Q部?br />2 事g处理

awt和swing的特?
awt(抽象H口工具?是依赖操作系l的GUI.
能够昄出来的组件是不同操作pȝ的共有组?(但是不太好看.)
swing(模拟GUIlg)速度比awt要慢的多.
swt(sun公司?是swing和awt的综合体)如果swt产生的组件awt有就直接调用, 没有模拟出?q样既解决了跨^台的问题,也解决了速度慢的问题.


低层容器:容器是包含其他组件的lg.
JFrame,JApplet,JDialog. 

布局理?
标准布局,自由布局.

GUI三个步骤:
1.选择容器
2.为容器设|布局方式
3.为容器填加组?

导入3个包
import javax.swing.*;
import java.awt.*;
import awt.event.*;

GUI底层容器的实现方?br />W一U?
JFrame jf = new JFrame();  //拿一个容?br />jf.setLayout(null);       
JButton jb = new JButton();
jb.setBounds(0,0,20,20);  //l对布局
jf.add(jb);

this.setSize(200,200);
this.setVisible(true);

W二U?
c?extends JFrame   //让自qcd成容?br />xlg;
public c?br />{
 Container ct = this.getContentPane();
 ct.add();
 this.setSize();
 this.setVisible();
}

this.setCursor(new Cursor(Cursor.HAND_CURSOR));  //变手

Image image = new ImageIcon("Sunset.jpg").getImage();
setIconImage(image);//改变图标


容器,根容?部g看gui资料  E?.

布局理?br />FlowLayout 面板(~省理? 布局理?br />在setLayout(null)下全是FlowLayout
BorderLayout JFrame(~省布局理? ?????br />GridLayout 行列(像表?
CardLayout 卡片布局理?没有늭)
GridBagLayout 格兰包布局理?标准理器中最灉|?不好把控)  


FlowLayout 从上C,从左到右攄.
1.当第一行没有排满时,会把W一行排满再排下一?
2.不管布局理器是否改?lg大小都不会改?
FlowLayout folw = new FlowLayout (FlowLayout.LEFT);
3.在缺省状态下从中部开?


BorderLayout
当东西南北Q何一个地区没攄Mlg?中部区域会把周围的区域R略掉.
setLayout(new BorderLayout());
lg会随着容器大小的变化而变?
add("North",lg); 不好?br />add(lg,BorderLayout.NORTH); 清晰

GridLayout
lg会随着容器大小的变化而变?
setLayout(new GridLayout(3,2));  行列
add(new Button("first",0));
Ҏ序列依次填进?只有列满了才d?
validate();  让容器刷?/p>

GardLayout
GardLayout card = new GardLayout();
setLayout(card);
add("1",new Button(""));


CardLayout cl = (CardLayout)cardLayout.getLayout;
cl.show(cardLayout,"card1");

事g
class c?extends JFrame implements(实现) ActionListener(接口)
{                      (受托事g处理)
                       不同的事件不同的部门处理
}
1 让类变成监听?br />2 赋予多少职责实现多?br />3 建立部g与监听者的关系
jb.addActionListener(this);

 

CardLayout cl = (CardLayout)card.getLayout();
String s = e.getActionCommed();
if(s.equals("上一?))
{
 cl.show(card,"card2");
        或?br />        cl.previous(card);
 button.setEnabled(false);
}
else if(s.equals("下一?))
{
 cl.show(card,"card1");
        或?br />        cl.previous(card);
 button.setEnabled(false);
}

 

 

 

 

 

 

 

 

 



]]>
java基础http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93260.html?/dc:creator>?/author>Thu, 11 Jan 2007 13:11:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93260.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/93260.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93260.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/93260.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/93260.html2.19 星期?br />  在方法里面申明的属性必d始化.(局部变?
  在类里面x的属性不用初始化.(全局变量)

  如果一个方法有q回?那么Ҏ里必d上return.q回cd没有void.

  构造器是cȝ构造方?

  构造方法的基本特点:
  Ҏ名和cd一?Ҏ名没有返回类?

  构造方法的Ҏ?
  1.每个cM定会有一个不带参数的默认构造方?
  2.如果一个类定义了一个带参数的构造方法,那么不带参数的构造方法就会被z刷?
  3.构造方法可以重?(如一个带参数的和一个带参数?
  一个类的方法同名叫做方法重?
  4.构造方法是不能被承的.

 
  实例变量:在类里面M一个方法外面的变量.每个对象都有属于自己实例变量的拷?

  public privateq个我们UC?可见性修饰符".它来指定数据成员和方法的讉K能力和访问?

  如果q个Ҏ的行为是改变对象的属?讄对象属性的?那么q个ҎUC?修改?.
  public void setHeight(float h, float w)
  {
     height = h;
     weight = w;
  } 

  如果q个Ҏ只是q回对象属?那么我们U这个方法ؓ"讉K?.
  public void abc()
  {
     return a;
  }

12.20 星期?br />  static int i;是类变量
  ~省修饰W?本包的都可以讉K.
  公共修饰W?public):M地方都可以访?

  if()
  语句1;
  else
  语句2;
 
  ?  :       if else的工E用?三目q算W?
 
  switch的条件语句只能是整数

  equalsҎ是被重写q的.
 
  equals?=的区?
  equals比较的是内存I间的内Ҏ否相?br />  == 比较的是两个对象的地址是否相同

12.21 星期?/p>

properties
 
import java.io.*;
import java.util.Properties;

class P
{
 Properties pro;
 
 public P()
 {
  pro = new Properties();
 }
 
 public void load(String fileName)
 {
  try
  {
   pro.load(new FileInputStream(fileName));加蝲
  }
  catch(IOException e)
  {
   e.printStackTrace();
  }
 }
 
 public void getP(String key)
 {
  System.out.println(pro.getProperty(key));d
 }
 
 public void setP(String key,String value)
 {
  pro.setProperty(key,value);讄Q在内存里)
 }
 
 public void storeP(String fileName,String Info)
 {
  try
  {
   pro.store(new FileOutputStream(fileName),Info);保存Q在文gQ?br />  }
  catch(IOException e)
  {
   e.printStackTrace();
  }
 }
 
}


普通文件?后缀.peoperties

Q柔性Y件开发)目的Q可以让E序变的灉|Q配|变的轻巧?/p>

循环语句
while循环Q@环次数未知用?br />for 循环Q已知@环次C用?br />do-while循环

 


 



]]>
java基础的基http://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93259.html?/dc:creator>?/author>Thu, 11 Jan 2007 13:10:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93259.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/93259.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2007/01/11/93259.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/93259.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/93259.htmljava基础

static是静态?br />静态方法不能访问非静态成员?br />非静态方法可以访问静态成员?/p>

int i = 3;
public static void main(String[] args) 

 System.out.println(i);
}
q个׃报错。因为静态方法不能访问非静态成员!Q?/p>

 static int i = 3;
 public static void main(String[] args)
 {
  nbn n = new nbn();
  n.abc();
 }
 
 public void abc()
 {
  System.out.println(i);
 }

q个׃会报错。因为非静态方法可以访问静态成员?/p>

 

public(a問修飾W?static(a問修飾W?void(q回型) main(Ҏ?(String[] args)(參數?{}

import javax.swing.*;
import java.text.SimpleDateFormat;
class jframe
{
 public static void main(String[] args)
 {
  JFrame jf = new JFrame();//H口
  
  SimpleDateFormat sf = new SimpleDateFormat("yyyy-mm-dd");//旉格式
  java.util.Date da = new java.util.Date();//昄旉的对象申?br />  
  
  jf.setTitle("w.a.n");//讄标题
  jf.setSize(300,300);//讄H体大小
  jf.setVisible(true);//昄
  JOptionPane.showMessageDialog(jf(位置),"hello");//弹出H口昄HELLO
  String a = JOptionPane.showInputDialog(null,"can you see?");//输入H口Q窗口提CZؓcan you see
  

  JOptionPane.showMessageDialog跟JOptionPane.showInputDialogq有一U参数写法?br />  JOptionPane.showMessageDialog(null," "(昄信息)," "(标题信息)QJOptionPane.INFORMATION_MESSAGE)Q?br />  System.out.println(sf.format(da.getTime())); //输出q月日。用SimpleDateFormat
  
 }
}


三种注释
/**
 *文檔a釋Q寫在開?Q?注明E序的功能,以及盔R信息Q?br /> *功能Q?br /> *作者:
 *版本Q?br /> *開發日期Q?br /> **/

/*
  *多行a釋
 
*///單行a釋


import javax.swing.JOptionPane;
class Area
{
 final private static double PI = 3.1415;  //帔R的申明:final
 private String r;
 private double rr;
 private double s;
 
 
 public static void main(String[] args)
 {
  Area a = new Area();
  a.Input();
  a.Areas();
 }
 
 public void Input()
 {
  r  = JOptionPane.showInputDialog(null,"請入圓半徑");
 }
 
 public void Areas()
 {  
  rr = Double.parseDouble(r);//cd转换 
  s  = rr*rr*PI;
  JOptionPane.showMessageDialog(null,"圓面I是:"+s);
 }
}

cd转换

String转double
xx = Double.parseDouble(要{换的数据名字)Q?br />String转int
xx = Integer.parseInt(要{换的数据名字);

int转String
String s = String.valueOf(12);
?br />String s = new Integer(10).toString();

注意Q!
float f = 2.33 是错的。因?.33默认cd是double.
ҎQfloat f = 2.33 F;

q要注意
高内聚,松耦合?br />函数分解?br />q样代码看v来会很清爽?/p>


import java.text.DecimalFormat;
class Dformat
{
 public static void main(String[] args)
 {
  DecimalFormat df = new DecimalFormat("0");//格式0后面几个数点表CZ留几位小?br />  System.out.println(df.format(66.6666)+"%");//q样66.666是67%
 }
}


标准输出
System.out.print("");//加ln是换?br />标准输入
System.out.println(System.in.read());//這個方法用來讀取阿U斯?br />System.out.println((char)System.in.read());//這個方法是強制轉換Q只能讀取一個字W?/p>

import java.io.*;//用BufferedReader 要引用io?br />class c

 public static void main(String[] args)throws Exception //要抛异常
 {
 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 String s = br.readLine();
 System.out.println(s);
 }
}
 要导入util包,util是工具包.
 Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int s1 = sc.nextInt();
 System.out.println(s*s1);//用Scanner可以省去判斷的步?在jdk1.5以下的版本不能用

GregorianCalendar calendar = new GregorianCalendar(year,month,day);
int d = calendar.get(Calendar.DAY_OF_WEEK);//今天是一周内的哪一?/p>

 

 

 

 

 

 

 

 

 

 

 



]]>
javascript补充http://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86193.html?/dc:creator>?/author>Thu, 07 Dec 2006 14:37:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86193.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/86193.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86193.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/86193.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/86193.html1.分离的话易于l护和管?
2.可重?
javascript的作用是:1实现客户端与|页的交?人机交互)
                               2客户端验?br />
window??儿子":document 和?history

window?个主要的.alert(提示?,open(新开一个窗?,prompt(对话?

q有window.location.href="";实现面跌{

window.status="";(状态条下写?.

window.history.back();(q回)
window.history.forward();(前进)
window.history.go(2);(前进2?
window.history.go(-2);(退??

事g
onclick单击 ondblclick双击
onfocus 聚焦 onblur q
onselect 选择事g
window.setTimeout("函数",旉)  (定时?
onmouseover 鼠标放上?br />onmouseout 鼠标d
下拉列表:onchange
onload 写在<body>?登陆发生的事?br />onunload 写在<body>里?d发生的事?br />

获取表单对象
document.formTest(表单?;
document.forms[0];
document.forms["表单?];
document.getElementById("formId");


]]>
表单验证http://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86186.html?/dc:creator>?/author>Thu, 07 Dec 2006 14:14:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86186.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/86186.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86186.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/86186.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/86186.html<form name="formTest" action="#">
  <input type="checkbox" id="w1" name="box" value="0" />?br />  <input type="checkbox" id="w2" name="box" value="0" />?br />  <input type="checkbox" id="w3" name="box" value="0" />外乡?lt;/br>
  <input type="button" value="ok" onclick="w1.checked='checked';w2.checked='checked';w3.checked='checked'"/>
单的按一个键,所有的check都被选中.

下面的这个是关于表单验证的一个作?需要分?是在一个TEXT聚焦的时?׃在旁ҎCZ排字告诉你里面内容必M为空,q且要大于或者等??当你输入的内容符合要求的时?该行字就自动时.我算是基本实C功能?但是不完?因ؓ当我输入9个字的时?字ƈ不是自动时?而是需要我再一ơ的聚焦..如果那位达h能帮忙解决下,俺感Ȁ不尽..
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

<html xmlns=" <head>
  <!-- Created by TopStyle Pro Trial Version -
www.bradsoft.com -->
  <title></title>
  <style>
   div
   {
    color: red;
    font-size: 13px;
   }
   
   
  
  </style>
  <script>
   function tixing()
   {
    
    var divObject = document.getElementById("div1");
    var text= document.getElementById("t1");
    if(text.value.length >=8)
    {
    divObject.innerHTML = "您输入的用户名必d0-8位之间?;
    divObject.style.display = "none";
    } 
    else
    {
    divObject.innerHTML = "您输入的用户名必d0-8位之间?;
    divObject.style.display = "";
    }
    
   } 
   function tixing1()
   {
    var divObject1 = document.getElementById("div2");
    var text2= document.getElementById("t2");
    if(text2.value.length >=8)
    {
    divObject1.innerHTML = "您输入的用户名必d0-8位之间?;
    divObject1.style.display = "none";
    } 
    else
    {
    divObject1.innerHTML = "您输入的用户名必d0-8位之间?;
    divObject1.style.display = "";
    }
   }
   function validate()
   {
    var te1 = document.getElementById("t1")
    var te2 = document.getElementById("t2")
    var divObject = div1;
    var divObject1 = div2;
    
    if(te1.value.length < 8)
    {
     divObject.innerHTML = "您输入的用户名必d0-8位之间?;
     divObject.style.display = "";
    }    
    
    if(te2.value.length < 8)
    {
     divObject1.innerHTML = "您输入的密码必须?-8位之?
     divObject1.style.display = "";
    }
    
    if(te1.value.length < 8 && te2.value.length < 8)
    {
    divObject.innerHTML = "您输入的用户名必d0-8位之间?;
    divObject1.innerHTML = "您输入的密码必须?-8位之?
    divObject.style.display = "";
    divObject1.style.display = "";
    }
   }
   
  </script>
 </head>

 <body>
  <form id="formTest">
   用户?br />   <input type="text" id="t1"  onfocus="tixing();"/><br /><div id="div1"  ></div>
   ?amp;nbsp码?
   <input type="password" id="t2"  onfocus="tixing1()" /><br /><div id="div2"></div>
   <input type="button" id="bt1" value="d" onclick="validate()"/>
  </form>
 </body>
</html>


再下面的q个是今天的作业.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

<html xmlns="<head>
 <!-- Created by TopStyle Pro Trial Version -
www.bradsoft.com -->
 <title></title>
 <style>
 div
 {
  float: left;
 }
 </style>
 <script>
  function a()
  {
   var textId0 = document.getElementById("te1");
   var text0 = textId0.value;
   var areId = document.getElementById("text");
   areId.value = areId.value+"1."+"用户?"+text0+"\n";
   
  }
  function b()
  {
   var textId1 = document.getElementById("pa");
   var text1 = textId1.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"3."+"密码:"+text1+"\n";
  }
  function c()
  {
   var radioId1 = document.getElementById("ra1");
   var radio1 = radioId1.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"4."+"单?"+radio1+"\n";
  }
  function d()
  {
   var radioId2 = document.getElementById("ra2");
   var radio2 = radioId2.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"4."+"单?"+radio2+"\n";
  }
  function ei()
  {
   var radioId3= document.getElementById("ra3");
   var radio3 = radioId3.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"4."+"单?"+radio3+"\n";
  }
  function f()
  {
   var checkId1= document.getElementById("che1");
   var check1 = checkId1.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"5."+"多?"+check1+"\n";
  }
  function g()
  {
   var checkId2= document.getElementById("che2");
   var check2 = checkId2.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"5."+"多?"+check2+"\n";
  }
  function h()
  {
   var checkId3= document.getElementById("che3");
   var check3 = checkId3.value;
   var areId = document.getElementById("text");
   areId.value =areId.value+"5."+"多?"+check3+"\n";
  }
  function select()
  {
   var a = document.getElementById("selectId");
   var b = a.options[a.selectedIndex];
   var c = b.value;
   var  areId = document.getElementById("text");
  
   areId.value = areId.value+c;
  }
 </script>
</head>

<body>
 
  <div>
   用户?<input type="text" id="te1" onblur="a()"/><br/>
   ?amp;nbsp&nbsp?<input type="password" id="pa" onblur="b();"/><br />
   <a>
   <input type="radio" value="吃饭" id="ra1" name="1" onblur="c();"/>吃饭
   <input type="radio" value="睡觉" id="ra2" name="1" onblur="d();"/>睡觉
   <input type="radio" value="上学" id="ra3" name="1" onblur="ei();"/>上学
   </a><br />
   <a>
   <input type="checkbox" id="che1" value="巷؜" onblur="f()"/>巷؜
   <input type="checkbox" id="che2" value="街道" onblur="g()"/>街道
   <input type="checkbox" id="che3" value="边边" onblur="h()"/>边边
   </a><br />
   <textarea id="text" cols="20" rows="6"></textarea>
  </div>
  <form id="selectId0">
   <select id="selectId" onblur="select()"; / >
    <option value="东东">东东  </option>
    <option value="南南">南南</option>
    <option value="西西">西西 </option>
    <option value="北北">北北 </option>
   </select>
  </form>
 
</body>
</html>

q是不完?.?.



]]>
循环语句http://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86182.html?/dc:creator>?/author>Thu, 07 Dec 2006 14:03:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86182.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/86182.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/12/07/86182.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/86182.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/86182.htmldo while?while 的区?  
do while  是先执行再判?br />while   是先判断再执?br />
--i;   减之前的?br />i--;       减之后的值  ? i的g?br />i = i - 1;                         i的g?br />i - 1;   i没有?br />

var i;
/*for(i = 0;i<10;i++)  //;分段   初始?循环条g;步进
{
 document.write(i+"<br />");
}*/

/*for(i = 0;i<20;i++)
{
 if(i == 16)
 {
  break; 
 }
 document.write(i+"&nbsp");
}*/

/*for(i = 0;i<20;i++)
{
 if(i%2 == 1)
 {
  continue;
 }
 document.write(i+"&nbsp");
}*/

/*var i = 1;
var j = 1;
for(i = 1;i<10;i++)
{
 for(j = 1;j<=i;j++)
 {
  document.write(i+"*"+j+"="+i*j);
  document.write("&nbsp&nbsp&nbsp&nbsp")
 }
 document.write("<br />")
}*/

/*var i = 1;
var j = 1;
 
for(i = 1;i<10;i++)

 for(j = 1;j<10;j++)
 {
  document.write(i+"*"+j+"="+i*j);
  document.write("&nbsp&nbsp&nbsp&nbsp")
 }
 document.write("<br />")
}*/

/*
while(true)  //d@?br />{
 alert("fdfd");
}
alert("end");*/

var i = 20;
while(i>5010)
{
 document.write(i);
 i=i-1;
}
//alert("end");

/*var i = 0;
while(i<100)
{
 document.write(i+"&nbsp;&nbsp;&nbsp;");
 if(i%10 == 9)
 {
  document.write("<br /><br />");
 }
 i++;
}*/



]]>
javascript条g语句http://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84646.html?/dc:creator>?/author>Thu, 30 Nov 2006 12:10:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84646.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/84646.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84646.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/84646.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/84646.html<script>
 var b = "hello";
 </script>

<script>
alert (b);
</script>
q个hello能打出来?q是今天黄Sir上课问的问题.好多人没反映q来.我也一个吧.
{案是能打出?*因ؓ写在不同块的变量可以怺引用..!!

逻辑q算W?br />&&?是数学上的?
||?
!?
在与里面,只要?个是false,那结果就是false.
在或里面,只要有个是true,那结果就是ture.
?如果是true那么它的非就是false,反之亦是.
如果是数?C只有0是false.只要是非0都是true.

switch(day = 1)  //switch只能表示{或者不{的映射关系
 {
  case day = 1:
  {
   alert("monday");
  }break;      //如果不加break会l往下执行,q且忽略后来的比对,直到遇到下一个break.
  case day = 2:
  {
   alert("tuesday");
  }break;  
  case day = 3:
  {
   alert("wednesday");
  }break;
  case day = 4:
  {
   alert("thursday");
  }break;
  case day = 5:
  { 
   alert("friday");
  }break;
  case day = 6:
  {
   alert("saturday");
  }break;
  case day = 7:
  {
   alert("sunday");
  }break;
  default:
  {
   alert("error");
  }break; //最?个可加可不加Q但是加上比较严谨?br />}

var score = 99;
if(score>=90) //表示范围
{
 alert("so cool");
}
else if(score>=80)
{
 alert("good"); 
}
else if(score>=70)
{
 alert("so-so")
}
else if(score>=60)
{
 ("pass");
}
else
{
 alert("not pass");
}



]]>
javascript基本语法.http://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84643.html?/dc:creator>?/author>Thu, 30 Nov 2006 11:57:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84643.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/84643.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/30/84643.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/84643.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/84643.html   (首先,今天是我的跟儿生?跟跟,你的跟祝你生日快?~)
   q入正题....
   javascript是一U脚本语a.脚本语言的意思就是它生成的文件不能独立运?必须依赖于一U^?比如javascript必要用IE才能打开.而像java或者c语言,它们׃码生成文件就可以独立q行.
   javascript是一U弱cd语言.它不像java,cq些强类型的语言.强类型和q型语a的区别就在于.在申明一个变量的时?强类型语a必须把变量类型也指定? int i =0;而且一旦指定好cd,׃能再改变.而javascript作ؓ一U弱cd的语a,它在x变量的时候就不需要指定变量类?切数据类型是自动转换?
   如var a = 0;q个时候aq个变量的数据类型就是整?a = "hello"q个时候a的变量类型就变成了字W型.
   javascript可以使用<script>嵌入qhtml?也可以通过d事g,或者用伪URL javascript..
   alert();可以?)内写函数,数字,或者字W串.字符串必ȝ""括v?它的效果是弹出一个窗?
    var f = true;
   alert(typeof(f));  //q回数据cd
   
   函数:function functionName()   //定义Q申?br />   {
    alert("Welcome to Lovo");
   }
   functionName();   //调用Q?br />
   function abc(o)  //o是Ş式参?br />   {
    alert(o);
   }
  // o = "hello";
   abc("hello");  //"hello"是实际参?br />
  
   function a(i,o)
   {
    alert(i+o)
   }
   a(5,9);
   q个的结果是14.很简?是2个数字相?
   
   function a(i,o)
   {
    alert(i+o)
   }
   a("500",9);
   q个??009.q个因ؓ500打了"",所以它变成了字符串相?

    function b(i,o)
   {
    var w;
   w = i + o;
   alert(w);
   return w;  //E序到returnp动蟩?br />   }
  b(1,3);
   之前我犯了个错误,我把 alert(w);写在了  return w; 之后..我就奇怪ؓ什么W的值打不出?..好白?因ؓ函数return w;的时候就直接跛_?׃会接l执行函数里面  return w; 后面的语句了. 

  function b(i,o)
   {
    var w;
   w = i + o;
   return w; 
   }
     
    function c()
    {
     var result;
   result = b(3,3);
   alert(result);
    }
   c();
   q个是函数c调用函数b,函数b里面有个q回?它把需要的l果q回l它的调用?



]]>
htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/28/84091.html?/dc:creator>?/author>Tue, 28 Nov 2006 08:49:00 GMThttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/28/84091.htmlhttp://www.aygfsteel.com/lovo-xiaoche/comments/84091.htmlhttp://www.aygfsteel.com/lovo-xiaoche/archive/2006/11/28/84091.html#Feedback0http://www.aygfsteel.com/lovo-xiaoche/comments/commentRss/84091.htmlhttp://www.aygfsteel.com/lovo-xiaoche/services/trackbacks/84091.html   (?.l于q是降?.只能从HTML重新学过?.?.学习l究是不能骗自己?.好好学习?~~...)
   HTML我是用TopStyle来写.CSS?.0..(我知道是废话...)
   要在HTML里面写个button or test很单了..
   是?lt;head>里写 <form action="#"(q个表示发到哪里.."#"表示提交到当前页? method="post" (q个是发送方?一共有2U?一U是GET.q个Ҏ相对比较不安?因ؓ它会把你提交的信息以一??"打头_到URL后面W?U就是POST.q个比较安全了.你所提交的东西是在URL上是看不到的)>
   然后<input type="button"(q如果填TEST是TEST? id="bt1" name="bt1"(ID跟NAME最好都写上,q个是好习惯,在以后会很有?ID跟NAME可以不一? value="d"(q个是你BUTTON上显C的?)>
相同..<input type="text" id="te2" name="te2">...
   如果要想写个单选框或者复选框.
   <input type="checkbox"(CHECKBOX是复选框) id="cb1" name="cb1">C?表示你复选框后面跟的?.怎么栯你的q个复选框为默认呢?在<input>里添上一个checked="checked".如果不能选就M一个disabled="disabled".
   接下来是单选框.其他的都跟复选框一?唯一不同的就?在type=""?radio".
   除此之外,q有password(跟TEST有点?不同的是输入信息是以星星的Ş? submit(跟button,reset是一l?按了submit整个表单都提交了) reset(重置) file(上传文g) image(囄 后跟src=""选择URL)
    选择?
   <select>
   <option value="sh">上v</option>
   <option value="sh">成都</option>
   <option value="sh">q州</option>
   </select>
   也可?lt;select size="5"(表示同时有几个被选项可以在不拉滚动条的情况下直接选择) multiple="multiple"(可以多?在按中SHIFT的情况下)>
    多行输入的文本框    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 <textarea cols="10" rows="10"(讄长宽不用说了.)></textarea>
    最?个是一个框框把你想框的内容全部框住,q且可以取个标题.
    <fieldset>
      <legend>dsada</legend>
    </fieldset>
    <fieldset> </fieldset>q个标签中间放你惌框的内容.<legend></legend>q个标签中间写标题名.
   
    CSS我简单说一?CSS是样式层叠表..它确实是层叠?关于盒式模型的布局属性一共有三种. margin: border:  padding: .margin: 是调整边框和Ҏ的距?border:是调整边框的厚度.padding:是调整边框跟内容之间的距?
     以下是我用CSS以及HTML写的一个网늚代码.
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "

<html>
 <head>
  <!-- Created by TopStyle Pro Trial Version -
www.bradsoft.com -->
  <title>用户注册</title> 
  <style>
  #a,#b,#d,#e,#i,#j
  {
     padding:;
   padding-left: 208px;
  }
  
  #c
  {
   padding: 30px;
   padding-left: 208px;
  }
  
  #f
  {
   padding:;
   padding-left: 193px;
  }
  
  #h
  {
   padding:;
   padding-left: 193px;
  }
  
  #g
  {
   padding:;
   padding-left: 224px;
  }
  
    #f2
  {
     margin:;
   margin-bottom: 29px;
   margin-left: 31px;
   margin-right: 43px;
  }
  
    #f3
  {
     margin:;
   margin-bottom: 29px;
   margin-left: 31px;
   margin-right: 43px;
  }
  
  #bt1
  {
   margin:;
   margin-left: 36px;
  }
  
  #cb1
  {
   margin:;
   margin-left: 30px;
  }
  
  /*#f4
  {
  
     margin:;
   margin-right: 778px;
  }*/
  
  #f5
  {
   margin:;
   margin-right: 778px;
  }
  </style>
 
 </head>

 <body>
  <form action="#" method="post">
   <fieldset id="f1">
   <h2>已注册用L?lt;/h2>
   <fieldset id="f2">
    <legend >
     <h3 >d用户</h3 >
    </legend>
    
    <p id="a" >用户?br />     <input type="text" id="te1" name="te1">
    </p>

    <p id="b">?amp;nbsp&nbsp?br />     <input type="text" id="te2" name="te2">
    </p>
    
    <p id="c">
     <input type="checkbox" id="cb1" name="cb1">C?br />     <input type="button" id="bt1" name="bt1" value="d">
    </p>
    </fieldset>

   <h2>未注册创建帐?lt;/h2>
    <fieldset id="f3">
     <legend >
      <h3><fieldset id="f5">用户注册</fieldset></h3> 
     </legend>
     
     <p id="d">
      <h4>您的电子邮箱不会被公布出去,但是必须填写.</h4>在您注册之前请先认真阅读服务条款
     </p>
     
     <p id="e">用户?br />      <input type="text" id="te3" name="te3">*(最?0个字W?
     </p>

     <p id="f">电子邮箱
      <input type="text" id="te4" name="te4">*
     </p>
     
     <p id="g">密码
      <input type="text" id="te5" name="te5">*(最?5个字W?
     </p>

     <p id="h">重复密码
      <input type="text" id="te6" name="te6">*
     </p>

     <p id="i">同意服务条款
      <input type="checkbox" id="cb2" name="cb2">先看看条ƾ?*
     </p>

     <p id="j">
      <input type="submit" id="bt2" name="bt2" value="提交">
      <input type="reset" id="bt3" name="bt3" value="重置">
     </p>
     
     <h3>*在提交您的注册信息时Q我们认为您已经同意了我们的服务条款</h3>
     <h3>*q些条款可能在未l您同意的时候进行修?lt;/h3>
   
   </fieldset>
  </form>
 </body>
</html>


  以上便是我的ȝ!



]]>
վ֩ģ壺 ˮ| | ڳ| ʻ| | | ͨ| Ϫ| ƽ| | | Т| ͬ| | ˮ| ׺| | Ӫɽ| | ɽ| | ˺| ʯ| | | ϼ| | ƽ| º| û| ΢| | | | ʯ| | е| ٹ| | | Ϸ|