ÃæÏò¶ÔÏóµÄJavaScriptµÄ±í¸ñÅÅÐòÎÊÌâ
JavaScript±í¸ñÅÅÐòÓкܶàÖÖ·½Ê½£¬²»¹ýÔÚʹÓÃÃæÏò¶ÔÏóµÄ·½Ê½½øÐÐJavaScriptÅÅÐòʱIE»áÓÐһЩÎÊÌâ¡£´úÂëÈçÏ£º
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ÑÝʾ±í¸ñµÄÅÅÐò¹¦ÄÜ</title>
</head>
<script type="text/javascript">
var previousColumnIndex = 0;
ArrayUtil = {
arrayOne: [3, 32, 2, 5],
arrayTwo: ["3","32","2","5"],
demoNoarmal: function(){
this.arrayOne.sort();//ĬÈÏ·½Ê½ÅÅÐò
alert(this.arrayOne);
},
comparionAsc: function(one, two){ //ÉýÐò
if(one < two){
return -1;
}else if(one > two){
return 1;
}else{
return 0;
}
},
comparionDesc: function(one, two){ //½µÉý
if(one < two){
return 1;
}else if(one > two){
return -1;
}else{
return 0;
}
},
comparionSort: function(){
//this.arrayOne.sort(this.comparionAsc);
this.arrayOne.sort(this.comparionDesc);
alert(this.arrayOne);
},
comparionAscForString: function(one, two){
//return one.localeCompare(two); //ÉýÐò
return -one.localeCompare(two); //½µÐò
},
comparionString: function(){
this.arrayTwo.sort(this.comparionAscForString);
Ïà¹ØÎĵµ£º
// <!CDATA[
//define
var xmlhttp;
var value=new Array();
var variable=new Array();
//Show Response MSG.
function handleStateChange()
{
var h=document.getElementById("Label1");
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
alert(xmlhttp. ......
• Сд½ð¶îÓë´óд½ð¶îÁª¶¯
<mce:script language="JavaScript"><!--
function daxie()
{
this.values = ["Áã", "Ò¼", "·¡", "Èþ", "ËÁ", "Îé", "½", "Æâ", "°Æ", "¾Á"];
this.digits = ["", "ʰ", "°Û", "Ǫ"];
}
function daxie.prototype.getdx(num)
{
if(isNaN(num)) return "";
var number = ......
<!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>ÍøÒ³¼ÆËãÆ ......
ÏÂÃæ¶¼ÊÇÎÒÊÕ¼¯µÄһЩ±È½Ï³£ÓõÄÕýÔò±í´ïʽ£¬ÒòΪƽ³£¿ÉÄÜÔÚ±íµ¥ÑéÖ¤µÄʱºò£¬Óõ½µÄ±È½Ï¶à¡£ÌØ·¢³öÀ´£¬Èø÷λÅóÓѹ²Í¬Ê¹Ó᣺Ǻǡ£
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò» ......