ÕùÔõ·ÓÉÍø£ºÊÇÒ»¸öÖ÷Òª·ÖÏíÎÞÏß·ÓÉÆ÷°²×°ÉèÖþ­ÑéµÄÍøÕ¾£¬»ã×ÜWiFi³£¼ûÎÊÌâµÄ½â¾ö·½·¨¡£

JavaScriptѧϰ֮ʲôÊDZհü£¿js±Õ°üµÄ½éÉÜ

ʱ¼ä£º2024/5/21×÷ÕߣºÎ´ÖªÀ´Ô´£ºÕùÔõ·ÓÉÍøÈËÆø£º

ÍøÒ³µÄ±¾ÖʾÍÊdz¬¼¶Îı¾±ê¼ÇÓïÑÔ£¬Í¨¹ý½áºÏʹÓÃÆäËûµÄWeb¼¼Êõ£¨È磺½Å±¾ÓïÑÔ¡¢¹«¹²Íø¹Ø½Ó¿Ú¡¢×é¼þµÈ£©£¬¿ÉÒÔ´´Ôì³ö¹¦ÄÜÇ¿´óµÄÍøÒ³¡£Òò¶ø£¬³¬¼¶Îı¾±ê¼ÇÓïÑÔÊÇÍòάÍø£¨Web£©±à³ÌµÄ»ù´¡£¬Ò²¾ÍÊÇ˵ÍòάÍøÊǽ¨Á¢ÔÚ³¬Îı¾»ù´¡Ö®Éϵġ£³¬¼¶Îı¾±ê¼ÇÓïÑÔÖ®ËùÒÔ³ÆΪ³¬Îı¾±ê¼ÇÓïÑÔ£¬ÊÇÒòΪÎı¾Öаüº¬ÁËËùν¡°³¬¼¶Á´½Ó¡±µã¡£
±¾ÆªÎÄÕ¾͸ø´ó¼Ò´øÀ´JavaScriptѧϰ֮ʲôÊDZհü£¿js±Õ°üµÄ½éÉÜ¡£ÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ£¬ÓÐÐèÒªµÄÅóÓÑ¿ÉÒԲο¼Ò»Ï£¬Ï£Íû¶ÔÄãÃÇÓÐËù°ïÖú¡£

ʲôÊDZհü£¿

¹Ù·½¶Ô±Õ°üµÄ½âÊÍÊÇ£ºÒ»¸öÓµÓÐÐí¶à±äÁ¿ºÍ°ó¶¨ÁËÕâЩ±äÁ¿µÄ»·¾³µÄ±í´ïʽ£¨Í¨³£ÊÇÒ»¸öº¯Êý£©£¬Òò¶øÕâЩ±äÁ¿Ò²ÊǸñí´ïʽµÄÒ»²¿·Ö¡£

±Õ°üµÄÌص㣺

1.×÷Ϊһ¸öº¯Êý±äÁ¿µÄÒ»¸öÒýÓ㬵±º¯Êý·µ»Øʱ£¬Æä´¦ÓÚ¼¤»î״̬¡£
2.Ò»¸ö±Õ°ü¾ÍÊǵ±Ò»¸öº¯Êý·µ»Øʱ£¬Ò»¸öûÓÐÊÍ·Å×ÊÔ´µÄÕ»Çø¡£

¼òµ¥µÄ˵£¬javascriptÔÊÐíʹÓÃÄÚ²¿º¯Êý---¼´º¯Êý¶¨ÒåºÍº¯Êý±í´ïʽλÓÚÁíÒ»¸öº¯ÊýµÄº¯ÊýÌåÄÚ¡£

¶øÇÒ£¬ÕâЩÄÚ²¿º¯Êý¿ÉÒÔ·ÃÎÊËüÃÇËùÔÚµÄÍⲿº¯ÊýÖÐÉùÃ÷µÄËùÓоֲ¿±äÁ¿¡¢²ÎÊýºÍÉùÃ÷µÄÆäËûÄÚ²¿º¯Êý¡£

µ±ÆäÖÐÒ»¸öÕâÑùµÄÄÚ²¿º¯ÊýÔÚ°üº¬ËüÃǵÄÍⲿº¯ÊýÖ®Íâ±»µ÷ÓÃʱ£¬¾Í»áÐγɱհü¡£

±Õ°ü¾ÍÊÇÒ»¸ö¿É·ÃÎʵ½±ðµÄº¯Êý×÷ÓÃÓòÖбäÁ¿µÄº¯Êý¡£

Ò»¸öº¯Êý°üº¬ÁíÒ»¸öº¯Êý£¬ÄÚ²¿º¯ÊýʹÓÃÍⲿº¯ÊýµÄ±äÁ¿»òÕß²ÎÊý¡£

±Õ°ü¿ÉÒÔʹһ¸ö¾Ö²¿µÄ±äÁ¿»òÕß²ÎÊý²»»á±»»ØÊÕ£¬ÒÔ±ãÎÒÃdz¤ÆÚµÄʹÓá£

<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
	</head>
	<script type="text/javascript" src="../js/vue.js"></script>

	<body></body>
	<script type="text/javascript">
		//ƽ³£´´½¨µÄ·½Ê½
		//Ò»¸öº¯Êý°üº¬ÁíÒ»¸öº¯Êý£¬ÄÚ²¿º¯ÊýʹÓÃÍⲿº¯ÊýµÄ±äÁ¿»òÕß²ÎÊý¡£
		function myFunction() {
			var x = 10;
			return function() {
				x++;
				alert(x);
			}
		}
		var a = myFunction();
		a(); //11    a(); //12    a(); //13
		//±Õ°ü¿ÉÒÔʹһ¸ö¾Ö²¿µÄ±äÁ¿»òÕß²ÎÊý²»»á±»»ØÊÕ£¬ÒÔ±ãÎÒÃdz¤ÆÚµÄʹÓá£
	</script>

</html>

×ܽ᣺ÒÔÉϾÍÊDZ¾ÆªÎĵÄÈ«²¿ÄÚÈÝ£¬Ï£ÍûÄܶԴó¼ÒµÄѧϰÓÐËù°ïÖú¡£¸ü¶àÏà¹Ø½Ì³ÌÇë·ÃÎÊJavaScriptÊÓƵ½Ì³Ì£¬jQueryÊÓƵ½Ì³Ì£¬bootstrap½Ì³Ì£¡

ÒÔÉϾÍÊÇJavaScriptѧϰ֮ʲôÊDZհü£¿js±Õ°üµÄ½éÉܵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢phpÖÐÎÄÍøÆäËüÏà¹ØÎÄÕ£¡


ÍøÕ¾½¨ÉèÊÇÒ»¸ö¹ãÒåµÄÊõÓº­¸ÇÁËÐí¶à²»Í¬µÄ¼¼ÄܺÍѧ¿ÆÖÐËùʹÓõÄÉú²úºÍά»¤µÄÍøÕ¾¡£



¹Ø¼ü´Ê£ºJavaScriptѧϰ֮ɶÊDZհü£¿js±Õ°üµÄ½éÉÜ




Copyright © 2012-2018 ÕùÔõ·ÓÉÍø(http://www.zhengzen.com) .All Rights Reserved ÍøÕ¾µØͼ ÓÑÇéÁ´½Ó

ÃâÔðÉùÃ÷£º±¾Õ¾×ÊÔ´¾ùÀ´×Ô»¥ÁªÍøÊÕ¼¯ ÈçÓÐÇÖ·¸µ½ÄúÀûÒæµÄµØ·½Ç뼰ʱÁªÏµ¹ÜÀíɾ³ý£¬¾´Çë¼ûÁÂ!

QQ:1006262270   ÓÊÏä:kfyvi376850063@126.com   ÊÖ»ú°æ