javascriptÔÚÏß±à¼Æ÷´úÂë
// =========================================================
var XEDITOR_STATUS_NOTLOADED = 0;
var XEDITOR_STATUS_ACTIVE = 1;
var XEDITOR_STATUS_COMPLETE = 2;
var XEDITOR_TRISTATE_OFF = 0;
var XEDITOR_TRISTATE_ON = 1;
var XEDITOR_TRISTATE_DISABLED = -1;
var XEDITOR_UNKNOWN = -9;
var XEDITOR_Active=0;
var ColorElement;
var SelectedIndex;
String.prototype.Contains = function(A){return (this.indexOf(A)>-1);};
var strBrowserInfo = navigator.userAgent.toLowerCase();
var XBrowserInfo = {
IsIE:strBrowserInfo.Contains('msie'),
IsIE7:strBrowserInfo.Contains('msie 7'),
IsGecko:strBrowserInfo.Contains('gecko/'),
IsSafari:strBrowserInfo.Contains('safari'),
IsOpera:strBrowserInfo.Contains('opera')
};
XBrowserInfo.IsGeckoLike = XBrowserInfo.IsGecko||XBrowserInfo.IsSafari||XBrowserInfo.IsOpera;
var XSelection = new Object();
XSelection.GetType=function()
{
if(XBrowserInfo.IsGeckoLike){
selectionType = 'Text';
var A;
try {
A = window.WinEditor.getSelection();
}catch (e) {};
if (A&&A.rangeCount==1){
var B=A.getRangeAt(0);
if (B.startContainer==B.endContainer&&(B.endOffset-B.startOffset)==1&&B.startContainer.nodeType!=Node.TEXT_NODE)
selectionType='Control';
};
return selectionType;
}else{
return window.DocEditor.selection.type;
&nbs
Ïà¹ØÎĵµ£º
1¡¢×Ö·û´®×ª»»ÎªÊýÖµ
³£¹æ·½·¨£º
JScript code
var a = parseFloat("12");
var b = parseInt("34");
¿ÉÒÔÓÃ
JScript code
var a = +("12");
var b = +("34");
2¡¢¶àάÊý×é
³£¹æ·½·¨£º
JScript code
var A = new Array(2);
A[0] = new Array(2);
A[1] = new Array(2);
A[0][0] = 1;
A[0][1] = 2;
A[1][0] = ......
½ûÖ¹Ò³ÃæË¢ÐµÄjavascript´úÂë
µ±Óû§ÏòÊý¾Ý¿âÌá½»Êý¾Ýºó,ÍùÍùÓÉÓÚµã»÷ÁËF5Ë¢ÐÂÒ³Ãæ,Ôì³ÉÊý¾ÝµÄÖØ¸´Ìá½»,ºÜÈÝÒ×Ôì³ÉÊý¾Ý¿âÊý¾Ý»ìÂÒ.
Èç¹ûÆÁ±ÎÁËˢа´Å¥,¶þ´ÎÌá½»µÄ¿ÉÄÜÐÔ»áСºÜ¶à!
ÏÂÃæÊǽûÖ¹Ò³ÃæË¢ÐµÄjavascript´úÂë:
document.onkeydown = function()
{
if(ev ......
Ò»¸öÍêÕûµÄʼþϵͳ£¬Í¨³£´æÔÚÒÔÏÂÈý¸ö½ÇÉ«£º
ʼþ¶ÔÏó£¬ÓÃÓÚ´¢´æÊ¼þµÄ״̬¡£
ʼþÔ´¶ÔÏ󣬵±Ç°Ê¼þÔÚ²Ù×÷µÄ¶ÔÏó£¬ÈçÔªËØ½Úµã£¬Îĵµ¶ÔÏó£¬window¶ÔÏó£¬XMLHttpRequest¶ÔÏóµÈ¡£
ʼþ¼àÌýÆ÷£¬µ±Ò»¸öʼþÔ´Éú³ÉÒ»¸öʼþ¶ÔÏóʱ£¬Ëü»áµ÷ÓÃÏàÓ¦µÄ»Øµ÷º¯Êý½øÐвÙ×÷¡£ÔÚIEÖУ¬Ê¼þ¶ÔÏóºãΪȫ¾ÖÊôÐÔwindow.eventµÄ·ÖÉí¡£
ÔÚw3cà ......
<a href="javascript:;"
onClick="javascript:window.open('admin_fk.asp?id=')"> ÎÄ×Ö²¿·Ö</a>
<a href="#"onclick="del(id)">ɾ³ý</a>»á³öÏÖ²»Õý³£Ìø×ª£¬½«
#¸Ä³Éjavascript:void(0)¾Í¿ÉÒÔÁË
££°üº¬ÁËÒ»¸öλÖÃÐÅÏ¢
ĬÈϵÄêµãÊÇ££top Ò²¾ÍÊÇÍø ......