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

JavaScript ÕýÔò±í´ïʽ¾­µäʵÀýÕûÀí

 <html>
<head>
<title>test javaScript</title>
//cssÉèÖÃͼÏñµÄ͸Ã÷¶È
<mce:style><!--
img
{
filter:alpha(opacity=10)
}
--></mce:style><style mce_bogus="1">img
{
filter:alpha(opacity=10)
}</style>
<mce:script type="text/javascript"><!--
function abort(){
alert("abort is invoked!");
}
function testConfirm(){
result=confirm("testConirm is completed");
if(result)
alert("you choose continue..."+result);
else
alert("you choose stop..."+result);
}
function testPrompt(){
var x=prompt("Enter a number between 0 and 10:","")
try{
if(x>10)
throw "Err1";
else if(x<0)
throw "Err2";
else
alert("the result is:"+x);
} catch(er){
if(er=="Err1")
alert("Error! The value is too high");
if(er == "Err2")
alert("Error! The value is too low") ;
}
}
function getWeekday(str){
//You will receive a different greeting based
//on what day it is. Note that Sunday=0,
//Monday=1, Tuesday=2, etc.
var d=new Date(str)
theDay=d.getDay()
switch (theDay)
{
case 1:
alert("Monday");
break;
case 2:
alert("Tuesday");
break;
case 3:
alert("Wednesday");
break;
case 4:
alert("Thursday");
break;
case 5:
alert("Finally Friday")
break;
case 6:
alert("Super Saturday")
break;
case 0:
alert("Sleepy Sunday")
break;
default:
alert("I'm looking forward to this weeke nd!");
}
}
function add(a,b){
c=a+b;
return c;
}
function addResult(){
a=prompt("please input a number","0");
b=prompt("please input another number","0");
alert("the result of "+a+","+b+"is:"+add(a,b));
}
function welcome(){
//alert("Welcome to my Homepage!");
}
function goodbye(){
//alert("goodbye!");
}
fu


Ïà¹ØÎĵµ£º

ÀûÓÃjavascriptÔÚSiebel HI»·¾³Ï½øÐмòµ¥µÄ²âÊÔ

SiebelÖ§³ÖÔÚä¯ÀÀÆ÷µÄµØÖ·À¸Ê¹ÓÃjavascript
ÀýÈç
javascript:alert(theApplication().GetProfielAttr("Employee Flag");
javascript:var sBo = theApplication().ActiveBusObject();sBc = sBo.GetBusComp("Contact");alert(sBc.GetFieldValue("Last Name")); ......

javascript ÄÚ´æÐ¹Â¶¹¤¾ßʹÓÃ

javascriptÄÚ´æÐ¹Â¶µÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬Ô­ÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊÌ ......

javascript¼òµ¥ÑéÖ¤

<html>
  <head>
    <base href="<%=basePath%>">
   
 <script type="text/javascript">
  function check(){
   var name1 = document.form1.name1.value;
   
   var passwor ......

javascript³£ÓÃÓ÷¨

javaScript ½ØÈ¡×Ö·û´®
Á½ÖÖ·½·¨£º
String.substr(N1,N2) Õâ¸ö¾ÍÊÇÎÒÃdz£ÓõĴÓÖ¸¶¨µÄλÖÃ(N1)½ØÈ¡Ö¸¶¨³¤¶È(N2)µÄ×Ö·û´®;
String.substring(N1,N2) Õâ¸ö¾ÍÊÇÎÒÃdz£ÓõĴÓÖ¸¶¨µÄλÖÃ(N1)µ½Ö¸¶¨µÄλÖÃ(N2)µÄ×Ö·û´®;
ÀýÈç
¶ÔÓÚhttp://localhost:8008index.aspx
substr(22,5)=substring(22,27)
Result:index
´òÓ¡±¾Ò³
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ