JSP+JavaScript´òÔì¶þ¼¶¼¶ÁªÏÂÀ²Ëµ¥
JSP+JavaScrip
t´òÔì¶þ¼¶¼¶ÁªÏÂÀ²Ëµ¥£º
(¸öÈ˲©¿Í£ºwww.duduct.com)
class(Ò»¼¶À¸Ä¿ÐÅÏ¢£©£ºclassId(×Ô¶¯±àºÅ£©£¬className£¨À¸Ä¿Ãû³Æ£©,
Nclass£¨¶þ¼¶À¸Ä¿ÐÅÏ¢£©,
NclassId£¨×Ô¶¯±àºÅ£©£¬NclassName(À¸Ä¿Ãû³Æ£©£¬parentId£¨Ò»¼¶À¸Ä¿id£¬Óëclass±íÖеÄclassId¹ØÁª£©
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
Èç¹ûweb.xmlÀïÃæµÄ<web-app>ÊÇversion="2.4"£¬ÄÇô¾ÍÒªÔÚ<jsp-property-group>ÀïÉèÖá£Èç¹ûversion="2.5"¾Í²»ÐèÒª¡£
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/javae ......
Ò»¡¢
ÔÚÒ»¸öÉè¼ÆÁ¼ºÃµÄWebÓ¦ÓÃÖУ¬¶¼»á×ÛºÏʹÓÃServletºÍJSP¼¼Êõ¡£Servlet¿ØÖÆÒµÎñÁ÷ת£¬JSPÔò¸ºÔðÒµÎñ´¦Àí½á¹ûµÄÏÔʾ¡£´Ëʱ£¬½«´óÁ¿Óõ½Öض¨Ïò¼¼Êõ¡£
¡¡¡¡Öض¨Ïò¼¼Êõ¿ÉÒÔ·ÖΪÁ½À࣬һÀàÊÇ¿Í»§¶ËÖض¨Ïò£¬Ò ......
JSP/Servlet µÄ¹Øϵ
JSP £¦Servlet ÊôÓÚjava web ²ãµÄ¼¼Êõ£¬×÷Óö¼ÊÇÓÃÀ´ÊµÏÖ¶¯Ì¬ÍøÒ³¡£JSP Ö÷ÒªÃæÏòµÄÊÇÍøÒ³Éè¼ÆÈËÔ±£¬Servlet Ö÷ÒªÃæÏòµÄÊdzÌÐòÉè¼ÆÈËÔ±¡£ÎÞÂÛÄã²ÉÓÃÁ½ÕßÖÐÄÄÒ»ÖÖµ¥Ò»µÄ¼¼Êõ£¬Ä㶼¿ÉÒÔ½â¾öËùÓж¯Ì¬ÍøÒ³³ÊÏÖµÄÎÊÌâ¡£´ÓÔËÐз½Ê½ÉϽ²£¬JSP ÊÂʵÉÏÐèҪתÒëΪServlet ²ÅÄÜÔËÐУ¬ËùÒÔ£¬ÓÐÒ»ÖÖ˵·¨ËµËüÃÇÊÇ"һà ......
ÔÚJavaScriptÖУ¬±äÁ¿ÖпÉÒÔ´æ´¢µÄÖµÖ÷ÒªÓÐÁ½ÖÖÀàÐÍ£ºÔʼֵ£¨primitive value£©ºÍÒýÓÃÖµ£¨reference value£©¡£Ç°Õßͨ³£Êǹ̶¨¶øÓÖ¼òµ¥µÄÊý¾Ý£¬´æ´¢ÔÚÕ»£¨stack£©ÖУ¬¶øºóÕßÔòÊDZȽϴóµÄ¶ÔÏ󣬴洢Ôڶѣ¨heap£©ÖУ¬¶ø¶ÔÓÚºóÕߵĵ÷Óã¬ÊÇͨ¹ý´æ´¢ÔÚÕ»ÖеÄÖ¸ÕëÀ´Íê³ÉµÄ¡£ÔʼÀàÐÍÓÐÎåÖÖ£ºNumber¡¢String¡¢Boolean¡¢NullºÍUnde ......