javascript ÉèÖÃcookie×¢ÒâÊÂÏî
javascript ÉèÖÃcookie×¢ÒâÊÂÏî
javascript ÉèÖÃcookie×¢ÒâÊÂÏî
ÔÚJavascript ÖУ¬cookie ¿ÉÒÔͨ¹ý document.cookie½øÐÐÉèÖ㬵±ÉèÖöà¸öcookieʱä¯ÀÀÆ÷»á×Ô¶¯°Ñ
ËüÃÇÓ÷ֺŸô¿ª¡£ÈçÏ£º
document.cookie = 'cookie1';
document.cookie ='cookie2';
alert (document.cookie) ;//Êä³ö cookie1 ; cookie2
µ«ÊÇÈç¹û°ÑµÚ¶þ¾ä¸ÄΪ document.cookie +='cookie2';
ÄÇôÔÚIEÖУ¬Êä³öÒÀȻΪcookie1 ; cookie2,µ«ÔÚFFÖУ¬Êä³ö±äΪcookie1 cookie2 £¨¼´·ÖºÅ»á±»È¥µô£©
Ïà¹ØÎĵµ£º
Ïê½âjavascriptÀà¼Ì³Ð»úÖƵÄÔÀí
Ä¿Ç° javascriptµÄʵÏּ̳з½Ê½²¢²»ÊÇͨ¹ý“extend”¹Ø¼ü×ÖÀ´ÊµÏֵģ¬¶øÊÇͨ¹ýconstructor functionºÍprototypeÊôÐÔÀ´ÊµÏּ̳С£Ê×ÏÈÎÒÃÇ´´½¨Ò»¸öanimalÀà
js ´úÂë
var animal = function(){ //Õâ¾ÍÊÇconstructor function ÁË&nbs ......
ÏÂÃæÁ½¸ö·½·¨ÊµÏÖÁËÊý×éÖÐÈ¥µô Ç°Ãæ »òÕß ºóÃæµÄ Öظ´Ïî
È¥µôÇ°ÃæµÄÖظ´Ïî·½·¨ °Ñarray [1, 2, 3, 1, 4, 5]È¥µôÇ°ÃæÖظ´Ïî µÃµ½ [2, 3, 1, 4, 5].
function unique(a)
{
var r = new Array();
o:for(var i = 0, n = a.length; i < n; i++) {
for(var x = i + 1 ; x < n; x++)
{
......
Javascript ÕýÔò±í´ïʽʹÓÃÊÖ²á
Javascript 2008-10-30 10:15 ÔĶÁ97 ÆÀÂÛ0
×ֺţº ´ó´ó ÖÐÖРСС
Ò»£®ÕýÔò±í´ïʽƥÅä³£ÓÃÓï·¨
“+”×Ö·û£º¹æ¶¨±í´ïʽ×Ö·û³öÏÖÒ»´Î»ò¶à´Î¡£
“*”×Ö·û£º¹æ¶¨±í´ïʽ×Ö·û³öÏÖÁã´Î»ò¶à´Î¡£
“? ......
¹Ø¼ü×Ö vbscript,javascript,µ÷ÓÃ
vbscriptºÍjavascript»¥Ïàµ÷Ó÷½·¨
¡¡¡¡ASP¾ß±¸¹ÜÀí²»Í¬ÓïÑԽű¾³ÌÐòµÄÄÜÁ¦£¬Äܹ»×Ô¶¯µ÷ÓúÏÊʵĽű¾ÒýÇæÒÔ½âÊͽű¾´úÂëºÍÖ´ÐÐÄÚÖú¯Êý¡£ASP¿ª·¢»·¾³ÌṩÁËÁ½Öֽű¾ÒýÇ棬¼´VBScript£¨È±Ê¡£©ºÍJScript¡£²»¹ý£¬¿ª·¢Õß² ......