ÍøËÙºÜÂý£¬µ«Óֵôò¿ª Flash ÊÇÒ»¼þºÜÍ´¿àµÄÊÂÇé£¬ÌØ±ðÊÇ Silverlight À´ÁÙÖ®¼Ê£¬Õâ¸ö¼¼Êõ¿ÉÄÜÓеãÓÃ
¾ßÌå´úÂëÈçÏÂ
<SCRIPT LANGUAGE="JavaScript">
var starttime = new Date()
</SCRIPT>
<img src="images/ConvLogo.JPG?id=<%Int(37462 * Rnd + 32)%>" width=0 height=0 onload="getbandwidth();">
<SCRIPT LANGUAGE="JavaScript">
function getbandwidth()
{
var filesize = 3.65 //measured in KB
var l = 2
var endtime = new Date()
var speed = Math.round(filesize*1000)/(endtime - starttime)
if (speed>10)
window.location='za/default.asp?ads=enabled'
& ......
1.³öÓÚ°²È«¿¼ÂÇ£¬JavaScriptÖÐÖ»Óпª·¢Õß×Ô¶¨ÒåµÄÀà¿ÉÒÔ±»¼Ì³Ð¡£
2.ʹÓöÔÏóð³äʵÏּ̳Ð
function ClassA(sColor){
this.color=sColor;
this.showColor=function (){
alert(this.color);
};
}
function ClassB(sColor,sName){
this.newMethod=ClassA; //´Ë´¦½«ÀàClassAµÄ¹¹Ô캯ÊýClassA()¿´×öÒ»¸öÆÕͨº¯Êý½øÐÐÒýÓ㬼´»ñµÃÁ˳¬ÀàµÄ¹¹ÔìÆ÷
this.newMethod(sColor); //´Ë´¦µ÷ÓÃnewMethod()·½·¨¹¹ÔìÒ»¸öClassB¶ÔÏó
delete this.newMethod; //ɾ³ý¶ÔClassA()·½·¨µÄÒýÓã¬ÒÔºó²»ÄÜÔÙµ÷ÓÃËü£¬ÒòΪ¶ÔÏóÉú³Éºó²»¿ÉÄÜÔÙµ÷Óù¹Ô캯Êý
  ......
1¡¢¶ÔÏóÊôÐÔ£º.lengthΪ³¤¶ÈÊôÐÔ£¬
.toUpperCase()Ϊ´óд×ÖĸÎı¾
2¡¢indexofº¯Êý·½·¨·µ»Ø×Ö·û´®ÄÚµÚÒ»´Î³öÏÖ×Ö·û´®µÄ×Ö·ûλÖã¬×Ö·û´®µÄλÖôÓ0¿ªÊ¼£¬Èç¹ûûÓÐÕÒµ½×Ó×Ö·û´®£¬Ôò·µ»Ø-1
3¡¢match()·½·¨¿ÉÓÃÀ´ÕÒµ½×Ö·û´®ÖÐÌØ¶¨µÄ×Ö·û£¬Èç¹ûÕÒµ½Ôò·µ»ØÕâ¸ö×Ö·û£¬Èç¹ûûÓÐÕÒµ½Ôò·µ»Ønull
4¡¢ÓÃreplace()Ìæ´ú×Ö·û´®ÖеÄ×Ö·û
Var str =”hello word!”
Document.write(str.replace(/word/,”sp”)) //ÊǰÑwordÌæ»»³Ésp
5¡¢ÈÕÆÚ¶ÔÏó£º
ʹÓÃDate()·½·¨¿É»ñµÃµ±ÈÕµÄÈÕÆÚ
ʹÓÃgetTime()¼ÆËãÄê·Ý
6¡¢Ê¹ÓÃconcat()·½·¨ºÏ²¢Á½¸öÊý×飬ÐÎʽΪ1.concat(2)¼´Îª°ÑÊý×é1ºÍÊý×é2ºÏ²¢ÆðÀ´
7¡¢Ê¹ÓÃjoin()·½·¨½«ËùÓÐÊý×éµÄËùÓÐÔªËØ×é³ÉÒ»¸ö×Ö·û´®
Join()ĬÈϵÄΪ¶ººÅ£¬join(.)ÔòÔÚËùÓеÄÊý×é¼äÓõãºÅÁ¬½Ó
8¡¢ÓÃBoolean()¼ì²é¶ÔÏóÊÇ·ñÊÇÂß¼Öµ£¬ÊÇÔò·µ»Øtrue£¬·ñÔò·µ»Øfalse£»ÈçBoolean(0)Ϊfalse
9¡¢round() º¯ÊýÊä³öËÄÉáÎåÈëµÄÕûÊýÖµ£¬random()º¯ÊýÊä³ö0µ½1Ö®¼äËæ»úµÄÊý£¬ËüÃǵĶÔÏó¾ùÊÇMath£¬¼´ÎªMath.round() Math.random()
10¡¢ÕýÔò±í´ïʽRegExp,¶ÔÏóÓÐÈý¸ö· ......
Ò»¡¢ ³£ÓÃÈÕÆÚÊý¾Ý¸ñʽ
1.Y»òYY»òYYY ÄêµÄ×îºóһ룬Á½Î»»òÈýλ
SQL> Select to_char(sysdate,'Y') from dual;
TO_CHAR(SYSDATE,'Y')
--------------------
7
SQL> Select to_char(sysdate,'YY') from dual;
TO_CHAR(SYSDATE,'YY')
---------------------
07
SQL> Select to_char(sysdate,'YYY') from dual;
TO_CHAR(SYSDATE,'YYY')
----------------------
007
2.Q ¼¾¶È 1¡«3ÔÂΪµÚÒ»¼¾¶È£¬2±íʾµÚ¶þ¼¾¶È¡£
SQL> Select to_char(sysdate,'Q') from dual;
TO_CHAR(SYSDATE,'Q')
--------------------
2
3.MM Ô·ÝÊý
SQL> Select to_char(sysdate,'MM') from dual;
TO_CHAR(SYSDATE,'MM')
---------------------
05
4.RM Ô·ݵÄÂÞÂí±íʾ £¨VÔÚÂÞÂíÊý×ÖÖбíʾ 5£©
SQL> Select to_char(sysdate,'RM') from dual;
TO_CHAR(SYSDATE,'RM')
---------------------
V
5.Month ÓÃ9¸ö×Ö·û³¤¶È±íʾµÄÔ·ÝÃû
SQL> Select to_char(sysdate,'Month') from dual;
TO_CHAR(SYSDATE,'MONTH')
------------------------
5ÔÂ
6.WW µ±ÄêµÚ¼¸ÖÜ £¨2007Äê5ÔÂ29ÈÕΪ2007ÄêµÚ22ÖÜ£©
SQL> Select to_char(sysdate,'WW') from dual;
TO_C ......
µÚÒ»¸öbug fix Óõ½ OracleµÄUpdateÓï¾ä
update Table1 set Web=-1 where ProgID=N‘123’
CodeReview ʱ
Do we need a COMMIT; in the Oracle version?
ÉÏÍø²éÁËÒ»ÏÂOracle COMMITÓ÷¨
COMMIT
Purpose
Use the COMMIT statement to end your current transaction and make permanent all changes performed in the transaction. A transaction is a sequence of SQL statements that Oracle Database treats as a single unit. This statement also erases all savepoints in the transaction and releases transaction locks.
Until you commit a transaction:
You can see any changes you have made during the transaction by querying the modified tables, but other users cannot see the changes. After you commit the transaction, the changes are visible to other users' statements that execute after the commit.
You can roll back (undo) any changes made during the transaction with the ROLLBACK statement (see ROLLBACK.
Oracle Database issues an implicit COMMIT before and after any data definition language (DD ......
¾³£Óõ½µÄÊý¾Ý¿âµ¼Èëµ¼³ö£¬Ã¿´ÎÓö¼Òª²éѯ£¬°ÑÓï¾ä±£ÁôÔÚÕâ±ß·½±ãÒÔºó²éÔÄ
//¿ìËÙµ¼ÈëÊý¾Ýµ½ÁíÒ»¸öÊý¾Ý¿âµÄÓï¾ä
ÀýÈ磺
imp tms/tms@TMS_192.168.0.104 file=c:\1.dmp buffer=30720 show=no ignore=yes grants=yes rows=yes full=yes
·¾¶ÎªOracle·¾¶
imp tms/tms@TMS file=d:\tmsbf_all.dmp buffer=30720 show=no ignore=yes grants=yes rows=yes full=yes
imp tms/tms@TMS_127.0.0.1 file=d:\fk.dmp buffer=30720 show=no ignore=yes grants=yes rows=yes full=yes
//µ¼³öÊý¾Ý¿â
exp tms/tms@TMS_192.168.1.104 file=d:\tmsbf_all.dmp owner=(tms) //µ¼³öÖ¸¶¨·½°¸Êý¾Ý
exp tms/tms@TMS_192.168.0.249 file=d:\tmsbf_all.dmp full=y //µ¼³öÕû¸öÊý¾Ý¿âÊý¾Ý ......