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

ÍøÒ³´òÓ¡javascript:window.print()

 
ÔÚ×öB/SÏîÄ¿¿ª·¢Ê±¡£ÄÑÃâ»áÓöµ½ÍøÒ³´òÓ¡ÎÊÌ⣡
±¾ÈËÔÚÍøÂçÉÏËѼ¯ µÄһЩ×ÊÁϹ° ´ó¼ÒʹÓã¡yzitw.com ¡íÍøÂç½£¿Í→ ËѼ¯
¿ÉÒÔÓÃcss¿ØÖÆ£¬¿´ÃÏÀÏ´óдµÄ¡£
@media print
.a {display:block}
.b {display:hidden}
ºÃÏñÊÇÕâÑù¡£°ÑÄã²»Ïë´òÓ¡µÄ²¿·ÖclassÉèΪb
Ê×ÏÈÔÚÍøÒ³ÖÐÌí¼Ó£º
      <OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
       VIEWASTEXT>
      </OBJECT>
È»ºó¾Í¿ÉÒÔÒÀ´Î¼ÓÈ빦ÄÜ°´Å¥ÁË£º
<input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="´òÓ¡"> <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="Ö±½Ó´òÓ¡">
      <input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="Ò³ÃæÉèÖÃ">
      <input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="´òÓ¡Ô¤ÀÀ">&nbsp;<INPUT type="button" value="¹Ø±Õ´°¿Ú" onclick="javascript:window.close()">
½«ÕâÁ½¿é¶«Î÷·Åµ½<center class=noprint></center>¾Í²»»á´òÓ¡ÕâЩ°´Å¥ÁË¡£µ±È»Òª¶¨ÒånoprintÁË£º
<style media="print">.Noprint { DISPLAY: none }</style>Ö»Òª°Ñ²»Ïë´òÓ¡µÄ¶«Î÷µÄcssÉèÖóÉnoprint¾Í¿ÉÒÔÁË¡£
ÏÖÔÚ¾ÍʵÏÖÁË»ù±¾µÄweb´òÓ¡£¬ÐèҪעÒâµÄÇé¿öÈçÏ£º
±ØÐ뽫ieµÄinternetÑ¡ÏîµÄ°²È«ÉèÖÃÖжÔÓÚûÓбê¼ÇΪ°²È«µÄActiveX¿Ø¼þ½øÐÐ...ÉèÖóÉÌáʾ»òÕßÆôÓ㬷ñÔò»á±¨´í£¬µ¼Ö²»¿ÉÓá£
Èç¹ûÔÚvs.net±à¼­»·¾³Ï±༭¸ÃÒ³Ã棬Ëü¾­³£×Ô¶¯µÄ¸øobjectÌí¼Ó¶àÓàµÄ²ÎÊý£¬ÓÐÁËÕâЩ¶«Î÷£¬´òÓ¡¾Í»á³ö´í£¬ËùÒÔÒª¼ÇµÃ×îºó±£´æµÄʱºòɾ³ýËüÃÇ¡£
ΪÁ˼ò±ã²¢ÇÒ´ïµ½×îºÃµÄЧ¹û£¬ÎÒÃÇ¿ÉÒÔÔÚÒ»¸öÒ³ÃæʵÏֱ༭ºÍ´òÓ¡£¬Õâʱºò»áÐèÒªºÜ¶àµÄtextbox£¬ÎÒÃÇ°ÑËüµÄcssÉèÖóÉ.edittext
{
overflow-y:visible;
width: 100%;
border-top: none;
border-right: none;
border-bottom: none;
border-left: none;
}¾Í¿ÉÒÔʵÏÖÔÚ´òÓ¡µÄʱºò²»ÏÔʾ±ß¿òºÍmultilineµÄtextbox²»ÏÔʾ¹ö¶¯ÌõÁË¡£
»¹ÓÐһЩС¾­Ñé¾ÍÊÇÔÚÉèÖñê¸ñ¿í¶ÈµÄʱºò£¬¶ÔÓÚA4Ö½ÕÅ£¬ºá´òÓÃ920£¬Êú´òÓÃ640£¬Ð§¹û×îºÃ¡£
ÏàÐÅÓÃB/S·½Ê½×ö¹ýÓ¦ÓõÄÈ


Ïà¹ØÎĵµ£º

JavaScript eval() º¯Êý

 JavaScript eval() º¯Êý
¶¨ÒåºÍÓ÷¨
eval() º¯Êý¿É¼ÆËãij¸ö×Ö·û´®£¬²¢Ö´ÐÐÆäÖÐµÄµÄ JavaScript ´úÂë¡£
Óï·¨
eval(string)
²ÎÊýÃèÊö
string
±ØÐè¡£Òª¼ÆËãµÄ×Ö·û´®£¬ÆäÖк¬ÓÐÒª¼ÆËãµÄ JavaScript ±í´ïʽ»òÒªÖ´ÐеÄÓï¾ä¡£
·µ»ØÖµ
ͨ¹ý¼ÆËã string µÃµ½µÄÖµ£¨Èç¹ûÓеĻ°£©¡£
˵Ã÷
¸Ã·½·¨Ö»½ÓÊÜԭʼ×Ö·û´®×÷Ϊ² ......

JavascriptµÄcallerµ½µ×ÊÇʲôʱºò¶¨ÒåµÄÄØ£¿

 ÍøÉϺܶàÎÄÕ¶¼×ªÔØÁËÒ»¶Î»°£º¶ÔÓÚº¯ÊýÀ´Ëµ£¬caller ÊôÐÔÖ»ÓÐÔÚº¯ÊýÖ´ÐÐʱ²ÅÓж¨Òå¡£
µ½µ×ÊDz»ÊÇÄØ£¿¿ÉÒÔÓÃÏÂÃæÕâ¶Î´úÂë²âÊÔһϣ¨Õâ¶ÎÀý×ÓÒ²ÊÇתÔØÎÄÕÂÖÐʹÓõģ©£º
function callerDemo() {
if (callerDemo.caller) {
var a= callerDemo.caller.toString();
alert(a);
} else {
......

JavaScriptÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(1): Ç°ÑÔ

 Ç°Ò»Õó¿´EXTJSµÄ¼¸¸öÀý×Ó£¬¾õµÃJSµÄµ××ӺܲÌرðÊÇJavaScriptÃæÏò¶ÔÏó³ÌÐòÉè¼Æ·½ÃæµÄ֪ʶ£¬ÓÚÊÇÔÚÍøÉÏËÑË÷£¬ÕÒµ½¼¸ÆªºÃµÄ²©¿Í£¬ÓÚÊÇת¹ýÀ´£¬ÒÔ±¸ºóÃæµÄѧϰʹÓá£
±¾²©¿ÍתÓÚ£ºhttp://devbean.javaeye.com/blog/404032
1. »ùÓÚ¶ÔÏó»¹ÊÇÃæÏò¶ÔÏó£¿
ÃæÏò¶ÔÏó¼¼ÊõÊÇÏÖ´úÈí¼þ¿ª·¢ÖеÄÖØÒª¼¼ÊõÖ®Ò»¡£ÃæÏò¶ÔÏó±ä³ÉµÄºÃ ......

JavaScriptÓï·¨¼¯½õ£¨¶þ£©

function function xx(){...} ¶¨Ò庯Êý
isNumeric                   ÅжÏÊÇ·ñÊÇÊý×Ö
innerHTML xx=¶ÔÏó.innerHTML ÊäÈëij¶ÔÏó±êÇ©ÖеÄhtmlÔ´´úÂë
innerText divid.innerText=xx ½«ÒÔdiv¶¨Î»ÒÔidÃüÃûµÄ¶ÔÏóÖµÉèΪXX
locati ......

תÔØ JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ

 1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" onc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ