JavaScript×ÖÃæÁ¿
ÔÚJavaScriptÀ×ÖÃæÁ¿°üÀ¨£º×Ö·û´®×ÖÃæÁ¿£¬Êý×é×ÖÃæÁ¿£¬º¯Êý×ÖÃæÁ¿ºÍ¶ÔÏó×ÖÃæÁ¿¡£
1.×Ö·û´®×ÖÃæÁ¿
var str = "Hello World£¡";
“Hello World£¡”¾ÍÊÇ×Ö·û´®×ÖÃæÁ¿¡£
2.Êý×é×ÖÃæÁ¿
var newArray = ["Mon","Tue","Wed"];
["Mon","Tue","Wed"]¾ÍÊÇÊý×é×ÖÃæÁ¿¡£
3.º¯Êý×ÖÃæÁ¿
var func = function (x,y){
return x*y;
}
µÈºÅÓҶ˾ÍÊǺ¯Êý×ÖÃæÁ¿¡£º¯Êý×ÖÃæÁ¿Ê¹µÃº¯Êý¿ÉÒÔ×÷ΪÁíÒ»¸öº¯ÊýµÄ²ÎÊý½øÐд«µÝ¡£
4.¶ÔÏó×ÖÃæÁ¿
Ïà¹ØÎĵµ£º
JavaScript²Ù×÷·þÎñÆ÷¿Ø¼þÖ®Gridview¿Ø¼þ
1.JavaScript½Å±¾ÈçÏ£º
<script language="javascript" type="text/javascript">
function gridviewControl()
{
//»ñÈ¡GridViewµÄ¿Í»§¶ËÔªËØ
  ......
¼¸ºõËùÓеĸ» Web Ó¦Óö¼»ùÓÚÒ»¸ö»ò¶à¸ö Web UI ¿â»ò¿ò¼Ü£¬ÕâЩ UI ¿âÓë¿ò¼Ü¼«´óµØ¼ò»¯ÁË¿ª·¢½ø³Ì£¬²¢´øÀ´Ò»Ö£¬¿É¿¿£¬ÒÔ¼°¸ß¶È½»»¥ÐÔµÄÓû§½çÃæ¡£±¾ÎĽéÉÜÁË 15 ¸ö·Ç³£Ç¿´óµÄ JavaScript Web UI ¿â£¬·Ç³£Êʺϸ÷ÖÖ¸÷ÖÖ¹æÄ£µÄ¸» Web Ó¦ÓõĿª·¢¡£
LivePipe
LivePipe UI »ùÓÚ Prototype Javascript ¿ò¼Ü£¬°üº¬ÁËÒ»ÕûÌ×¾Ñϸ ......
page1.htmlΪ¸¸´°¿Ú£¬page2.htmΪ×Ó´°¿Ú¡£Ïêϸ´úÂëÈçÏ£º
page1.html
ÒýÓÃ
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Con ......
Ö±½ÓÉÏÀý×Ó£º
<html>
<script language = "javascript">
var msg = "È«¾Ö±äÁ¿";
function show(){
msg = "¾Ö²¿±äÁ¿";
}
show();
alert(msg);
</script&g ......
String.prototype.changeQuery = function(name,value)
{
var reg = new RegExp("(^|)"+ name +"=([^&]*)(|$)");
var tmp = name + "=" + value;
if(this.match(reg) != null)
{
return this.replace(eval(reg),tmp);
}
else
{
if(this.match("[\?]"))
{
return this + ......