Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ǰ̨ÀûÓÃjavascript½âÎöJsonÊý¾Ý£¬Éú³É±àÂëÕÛÏß

ǰ̨ÀûÓÃjavascript½âÎöJsonÊý¾Ý£¬Éú³É±àÂëÕÛÏߣ¬ÒòΪÀûÓÃä¯ÀÀÆ÷½âÎö£¬Êý¾ÝÁ¿´óµÄÇé¿öÏ£¬»áËø¶¨ä¯ÀÀÆ÷£¬½Å±¾Ö´ÐÐÌ«Âý¡£
package unit;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import net.sf.json.JSONArray;
/**
* ½âÎöKMLÎļþ£¬»ñÈ¡Ìض¨Ïß·վµã¾­Î³¶È
* ´ËÀàÓÃÓÚǰ̨£Ê£ÓÉú³É±àÂëÕÛÏß
* ½âÎö´ËÀà¸ñʽ
* * <coordinates>
114.603325, 37.427359, 50.90
114.604025, 37.428438, 50.90
114.599972, 37.525815, 29.90
114.598970, 37.535222, 33.40
114.589994, 37.617946, 34.80
114.589880, 37.618956, 35.20
114.579965, 37.694322, 39.40
114.579317, 37.695190, 40.30
114.569753, 37.708272, 42.60
114.569112, 37.709142, 43.20
114.559623, 37.722202, 45.10
114.558989, 37.723076, 45.40
114.549448, 37.736103, 49.20
114.548594, 37.737259, 49.60
114.539893, 37.753110, 44.90
114.539696, 37.754055, 44.70
114.529925, 37.799285, 52.80
114.529705, 37.800290, 52.80
114.519833, 37.845255, 51.00
114.519614, 37.846256, 51.40
114.509846, 37.891104, 49.50
114.509624, 37.892112, 49.30
</coordinates>
µÄÊý¾Ý
*
* @author libin
*
*/
public class KmlParse {
//´æ´¢xmlÔªËØÐÅÏ¢µÄÈÝÆ÷
private static List<Leaf> elemList = new ArrayList<Leaf>();

@SuppressWarnings("unchecked")
public static List nameTable = new ArrayList();//Ãû³Æ
@SuppressWarnings({ "unchecked"})
public static Hashtable LONGTable = new Hashtable();//¾­¶È
@SuppressWarnings("unchecked")
public static Hashtable dimenTable = new


Ïà¹ØÎĵµ£º

Javascript ÖÐ String.replace( ) µÄÃîÓÃ

<script language="javascript">
<!--
String.prototype.replaceAll = stringReplaceAll;
function stringReplaceAll(AFindText,ARepText){
raRegExp = new RegExp(AFindText,"g");
return this.replace(raRegExp,ARepText)
}
var content = "%sfasf%sfd%asdfsadf%1111%"
 // °Ñ ËùÓÐµÄ % Ì滻Ϊ #
......

javaScript document¶ÔÏóÏê½â

Document¶ÔÏóÄÚÈݼ¯ºÏ

document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
———————————————————————
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñÔò» ......

javascript¼Ì³Ð

ÓÃcall·½·¨ÊµÏּ̳Ð
function classA(sColor){ 
       this.color=sColor; 
       this.sayColor=function(){ 
         alert(this.color); 
       ......

JavaScriptÌØЧ£ºÍ¼Æ¬Êó±ê¹öÂÖËõ·Å

<!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>
<title>ͼƬÊó±ê¹öÂÖËõ·Å</title>
<meta http-eq ......

JavaScriptÌØЧ£ºÒ³ÃæÍ£Áôʱ¼ä

<script language="javascript" type="text/javascript">
var TempTime=new Date().getTime();
function StayTime(){
    var NowTime=new Date().getTime();
    var Time=NowTime-TempTime;
    var&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ