楦″晞绫?/title><link>http://www.ojizl5.fun/</link><description>鍏虫敞浜掕仈缃戙佹暟鐮併佽蒋浠跺紑鍙戝拰缂栫▼鍏ラ棬鐨処T鍗氬</description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 100427</generator><language>zh-CN</language><copyright>Copyright 漏 2011-2017 楦″晞绫? 鐗堟潈鎵鏈?</copyright><pubDate>Tue, 26 Mar 2019 08:46:49 +0800</pubDate><item><title>楦″晞绫冲紑濮?#37813;?#37818;?#26916;?#37929;暒a@b.com (楦″晞绫?http://www.ojizl5.fun/software/772.htmlMon, 25 Mar 2019 16:59:37 +0800http://www.ojizl5.fun/software/772.html      楦″晞绫?#37928;?#37722;勪綅鏈?#37721;?#38171;屼箙杩?#27996;?#38171;?/p>

      鍥犱负杩?#27996;?#39582;寸‘瀹炴瘮杈冨繖锛?#37813;浠?#37719;氬?#27967;鏂伴鐜?#37832;?#37813;涓嬮檷銆傜?#23338;埌鏈?#27996;洪棶鏄?#28051;?#37828;嚭浠涔?#27996;嬫儏浜?#38171;屽湪姝?#37733;?#32475;?#38171;?#32429;?#28729;?#37832;?#37832;?#38171;屽璋?#28598;?#28729;?#37711;冲績銆?/p>

      鐩墠楦″晞绫?#37928;?#37733;㈤槦?#28266;姝?#29999;稿紑鍙戜箣浣?#38171;?#26473;樺皻鏈夌簿鍔?#37721;?#28000;?#37813;?#37818;?#28598;?#38318;?#26916;?#37929;?#37510;傚ぇ瀹跺鏋?#37832;夌?#33636;粺瑕佸紑鍙?#37721;?#28000;?#37813;?#26982;″晞绫冲摝锛屾棤璁?#37828;疌/S鏋?#37835;?#26473;?#37828;疊/S鏋?#37835;?#38171;屾垜浠?#38318;?#37721;?#28000;?#37820;?#28729;?#37510;?/p>

      娆?#26473;庡墠?#28533;娲?#29835;?#37722;堜綔锛?#37722;?#26864;?#37832;?#38340;?#37510;?/p>

      閭?#32480;?#38171;歫izhuomi@126.com

      QQ锛?312565270

]]>
?#33931;浠跺紑鍙?/category>http://www.ojizl5.fun/software/772.html#commenthttp://www.ojizl5.fun/http://www.ojizl5.fun/feed.asp?cmt=772http://www.ojizl5.fun/cmd.asp?act=tb&id=772&key=a8de8094灏忕櫧鐓ф牱璇绘噦鐨刅LAN鍘熺悊璁茶Вa@b.com (楦″晞绫?http://www.ojizl5.fun/software/771.htmlThu, 12 Jul 2018 19:34:04 +0800http://www.ojizl5.fun/software/771.html?#36127;浠涔堥渶瑕乂LAN

1. 浠涔堟槸VLAN?

VLAN(Virtual LAN)锛岀炕璇戞垚涓?#37826;囨槸“铏氭嫙灞鍩?#32515;?rdquo;銆侺AN鍙?#28000;?#37828;敱灏戞暟鍑?#37721;?#28729;剁敤璁$畻鏈?#37835;勬垚鐨?#32515;戠粶锛屼篃鍙?#28000;?#37828;暟浠ョ櫨璁?#37928;?#29825;$畻鏈?#37835;勬垚鐨勪紒涓?#32515;戠粶銆俈LAN鎵鎸?#37928;凩AN鐗?#37816;?#28003;跨敤璺敱鍣?#37714;?#37715;?#37928;?#32515;戠粶——涔?#28751;?#37828;?#39582;?#37822;?#37737;?#37510;?/p>

?#28266;姝?#29825;╂垜浠?#37711;?#28598;?#28052;犱竴涓嬪箍鎾?#37737;?#37928;勬蹇?#37510;?#39582;?#37822;?#37737;?#38171;屾寚鐨?#37828;?#39582;?#37822;?#29999;?鐩爣MAC鍦板潃鍏?#38318;ㄤ负1)鎵?#20824;浼?#38315;?#37714;?#37928;勮寖鍥?#38171;?#27996;?#37719;宠兘澶?#37929;?#37818;?#38315;氫俊鐨勮寖鍥?#37510;?#28051;?#37837;?#37734;?#29831;?#38171;?#39582;?#28051;?#28000;?#28000;?#37828;?#39582;?#37822;?#29999;?#38171;屽?#27693;挱甯?Multicast Frame)?#25328;鐩爣涓?#37828;?#37928;?#37719;?#37822;?#29999;?Unknown Unicast Frame)涔熻兘?#28266;鍚屼竴涓?#39582;?#37822;?#37737;?#28051;晠琛屾棤闃?#37510;?/p>

鏈潵锛?#27996;屽眰浜?#37817;?#37832;?#37721;兘鏋勫缓鍗?#28051;鐨?#39582;?#37822;?#37737;?#38171;屼笉杩?#28003;跨敤VLAN鍔熻兘鍚?#38171;?#28729;冭兘澶?#28751;?#32515;戠粶鍒?#37715;叉垚澶?#28051;?#39582;?#37822;?#37737;?#37510;?/p>

2.鏈?#37714;?#37715;?#39582;?#37822;?#37737;?#37827;?hellip;…

閭?#28052;?#38171;屼负浠涔堥渶瑕?#37714;?#37715;?#39582;?#37822;?#37737;熷憿?閭?#37828;?#37733;犱负锛屽鏋?#28000;?#37832;?#28051;涓?#39582;?#37822;?#37737;?#38171;?#37832;?#37721;兘浼氬奖鍝?#37714;?#32515;戠?#28356;暣浣?#37928;勪紶杈撴ц兘銆?#37711;?#28003;?#37720;?#37733;?#38171;?#29831;?#37721;傜?#23342;檮鍥?#37716;?#23075;辩悊瑙?#37510;?/p>

鍥?#28051;?#38171;屾槸涓涓敱5鍙?#27996;屽眰浜?#37817;?#37832;?浜?#37817;?#37832;?锝?)杩?#37818;?#27996;?#28598;?#38322;?#28729;?#37812;?#37832;?#37835;勬垚鐨?#32515;戠粶銆傚亣璁?#26473;?#37827;?#38171;?#29825;$畻鏈篈?#28214;瑕?#28051;?#29825;$畻鏈築閫氫俊銆傚湪鍩?#27996;?#28000;?#28598;?#32515;?#37928;?#38315;氫俊涓?#38171;屽?#21620;?#35826;湪?#26271;鎹?#29999;?#28051;?#37816;?#28729;?#37929;爣MAC鍦板潃鎵嶈兘姝?#29999;?#38315;氫俊锛?#37733;?#23005;?#29825;$畻鏈篈蹇呴』鍏?#39582;?#37822;?ldquo;ARP璇锋眰(ARP Request)?#20426;?#20229;”锛屾潵灏?#29831;?#38014;?#37721;?#29825;$畻鏈築鐨凪AC鍦板潃銆?/p>

浜?#37817;?#37832;?鏀跺埌骞?#37822;?#29999;?ARP璇锋眰)鍚?#38171;屼?#27692;皢瀹?#26462;?#37721;戠粰闄?#37818;?#37824;剁鍙?#28598;栫殑鍏?#28000;?#37813;鏈夌鍙?#38171;屼篃灏?#37828;疐looding浜?#37510;?#37818;ョ潃锛?#27996;?#37817;?#37832;?鏀跺埌骞?#37822;?#29999;?#37722;?#28052;?#28028;欶looding銆?#27996;?#37817;?#37832;?銆?銆?涔?#26473;?#28028;欶looding銆?#37832;缁圓RP璇锋眰浼氳杞?#37721;戝埌鍚屼竴缃戠粶涓?#37928;?#37813;鏈?#28729;?#37812;?#37832;?#28051;?#37510;?/p>

璇?#28598;?#28729;舵敞鎰?#28051;涓?#38171;?#26473;?#28051;狝RP璇锋?#20634;師鏈?#37828;负浜?#38014;峰緱璁$畻鏈築鐨凪AC鍦板潃鑰?#37721;戝嚭鐨?#37510;?#28052;?#28751;?#37828;?#29831;?#38171;?#37721;?#29781;佽?#30075;鏈築?#20824;鏀跺埌灏?#28051;?#27996;嬪ぇ鍚?#27996;?#37510;?#37721;?#37828;?#27996;嬪疄涓?#38171;屾暟鎹?#29999;?#37719;?#28028;?#38316;嶆暣涓?#32515;戠粶锛屽?#33392;嚧鎵鏈?#37928;?#29825;$畻鏈洪兘鏀跺埌浜?#28729;?#37510;傚姝?#28051;?#28533;锛屼竴鏂归潰骞?#37822;俊?#20229;娑?#38000;?#27996;?#32515;戠?#28356;暣浣?#37928;?#29999;?#28729;?#38171;?#37721;?#28051;鏂归潰锛屾?#36346;埌骞?#37822;俊?#20229;鐨?#29825;$畻鏈?#26473;?#29781;佹秷鑰?#28051;閮?#37714;咰PU鏃堕?#23384;潵瀵?#28729;?#26473;?#29723;屽?#21229;悊銆?#38315;犳垚浜?#32515;戠粶甯?#28729;藉拰CPU杩愮畻?#20824;鍔?#37928;?#28598;?#38322;忔棤璋撴秷鑰?#37510;?/p>

3. 骞?#37822;俊?#20229;鏄?#38317;?#28052;?#32513;?#29999;?#37721;戝嚭鐨?#37722;?

璇?#37714;?#26473;?#38322;?#38171;屾偍涔?#29825;?#28028;氶棶锛氬箍鎾俊?#20229;鐪?#37828;?#38317;?#28052;?#26864;戠?#20344;嚭鐜?#37928;?#37722;?

绛旀?#22559;槸锛?#37828;?#37928;?瀹?#38340;?#28051;?#39582;?#37822;?#29999;?#28028;氶潪甯?#26864;戠箒鍦板嚭鐜?#37510;?#37714;╃敤TCP/IP鍗?#29825;?#37837;堥氫俊鏃?#38171;?#38340;?#27996;嗗墠?#28528;?#22189;鐜?#37928;凙RP澶?#38171;?#26473;?#37832;?#37721;兘?#28214;瑕?#37721;戝嚭DHCP銆丷IP绛夊緢澶?#37711;?#28000;?#32491;诲瀷鐨?#39582;?#37822;俊?#20229;銆?/p>

ARP骞?#37822;?#38171;屾槸?#28266;?#28214;瑕?#28051;?#37711;?#28000;?#28051;?#37832;洪氫俊鏃跺?#25117;嚭鐨?#37510;傚綋瀹?#37812;?#37832;?#29831;锋眰DHCP鏈?#37716;?#37731;?#37714;?#38320;岻P鍦板潃鏃?#38171;屽氨蹇呴』鍙戝嚭DHCP鐨?#39582;?#37822;?#37510;?#38000;屼?#36328;敤RIP浣滀负璺敱鍗?#29825;?#37827;?#38171;屾?#24539;殧30绉掕矾?#25969;鍣?#38318;?#28028;氬閭?#26473;?#37928;?#37711;?#28000;?#29882;敱鍣?#39582;?#37822;?#28051;娆?#29882;敱?#20426;?#20229;銆俁IP浠?#28598;栫殑鍏?#28000;?#29882;敱鍗?#29825;?#28003;跨敤澶氭挱浼?#26440;?#29882;敱?#20426;?#20229;锛?#26473;?#28052;?#28028;氳浜?#37817;?#37832;?#26462;?#37721;?Flooding)銆?#38340;?#27996;員CP/IP浠?#28598;?#38171;孨etBEUI銆両PX?#25328;Apple Talk绛?#37719;?#29825;?#28052;熺粡甯搁渶瑕佺敤鍒?#39582;?#37822;?#37510;備?#23338;?#20634;湪Windows涓?#37721;屽嚮鎵撳紑“缃戠粶璁$畻鏈?rdquo;鏃跺氨浼?#37721;戝嚭骞?#37822;?澶氭挱)?#20426;?#20229;銆?Windows XP闄?#28598;?hellip;…)

鎬?#28052;?#38171;?#39582;?#37822;?#28751;卞湪?#22428;浠韩杈?#37510;?#28051;嬮潰鏄?#28051;浜?#29999;?#29785;?#37928;?#39582;?#37822;?#38315;氫俊锛?/p>

(1)ARP璇锋眰锛氬缓绔婭P鍦板潃?#25328;MAC鍦板潃鐨?#37828;?#28751;?#37711;崇郴銆?/p>

(2)RIP锛?#28051;绉?#29882;敱鍗?#29825;?#37510;?/p>

(3)DHCP锛氱敤浜庤嚜鍔?#29825;?#28729;欼P鍦板潃鐨?#37719;?#29825;?#37510;?/p>

(4)NetBEUI锛歐indows涓?#28003;跨敤鐨?#32515;戠粶鍗?#29825;?#37510;?/p>

(5)IPX锛歂ovellNetware浣跨敤鐨?#32515;戠粶鍗?#29825;?#37510;?/p>

(6)Apple Talk锛氳嫻鏋?#37711;?#37721;?#37928;凪acintosh璁$畻鏈?#28003;跨敤鐨?#32515;戠粶鍗?#29825;?#37510;?/p>

濡?#37835;滄暣涓?#32515;戠粶鍙?#37832;?#28051;涓?#39582;?#37822;?#37737;?#38171;?#38317;?#28052;?#28051;鏃?#37721;戝嚭骞?#37822;俊?#20229;锛屽氨浼?#28028;?#38316;嶆暣涓?#32515;戠粶锛?#39582;?#28051;?#28725;?#32515;戠粶涓?#37928;勪富鏈?#29999;︽潵棰?#28598;栫殑璐熸媴銆?#37733;?#23005;?#38171;屽湪璁?#29825;AN鏃?#38171;岄渶瑕佹敞鎰忓浣?#37813;嶈兘鏈?#37825;?#37734;?#37714;?#37715;?#39582;?#37822;?#37737;?#37510;?/p>

4.骞?#37822;?#37737;?#37928;?#37714;?#37715;?#28051;嶸LAN鐨?#36423;?#29781;佹?/p>

鍒?#37715;?#39582;?#37822;?#37737;?#37827;?#38171;屼竴鑸?#38318;?#36423;呴』浣跨敤鍒?#29882;敱鍣?#37510;?#28003;跨敤璺敱鍣?#37722;?#38171;?#37721;?#28000;?#28000;?#29882;敱鍣?#28051;?#37928;?#32515;戠粶鎺?#37721;?LAN Interface)?#36127;鍗曚綅鍒?#37715;?#39582;?#37822;?#37737;?#37510;?/p>

浣?#37828;?#38171;?#38315;氬父鎯呭喌涓?#29882;敱鍣?#28051;?#28051;?#28028;?#37832;?#28598;?#28598;?#37928;?#32515;戠粶鎺?#37721;?#38171;?#37711;舵暟鐩?#28598;氬湪1锝?涓乏鍙?#37510;傞?#24533;潃瀹?#29999;?#26473;?#37818;?#37928;勬櫘鍙?#38171;?#28729;?#29999;?#29882;敱鍣?鎴?#38000;?#37721;獻P鍏?#27996;?#37731;?鍙樺緱杈冧负甯?#29785;?#38171;屼絾鏄渶瑕佹敞鎰?#37928;?#37828;?#38171;?#28729;?#28000;?#28051;婇潰?#27367;鐒跺甫?#28483;澶?#28051;?涓鑸负4涓乏鍙?杩?#37818;AN涓渚?#37928;?#32515;戠粶鎺?#37721;?#38171;屼絾閭?#28729;?#38340;?#28051;?#37828;?#29882;敱鍣?#37712;?#32515;?#37928;?#27996;?#37817;?#37832;?#38171;?#39582;?#28051;嶈兘鍒?#37715;?#39582;?#37822;?#37737;?#37510;?/p>

?#21900;涓?#28003;跨敤璺敱鍣?#37714;?#37715;?#39582;?#37822;?#37737;?#37928;?#29831;?#38171;?#37813;?#20824;鍒?#37715;?#37928;勪釜?#26271;瀹?#37711;?#37721;?#37712;?#27996;?#29882;敱鍣?#37928;?#32515;戠粶鎺?#37721;?#28051;暟锛屼娇寰楃敤鎴锋棤?#30838;?#22172;?#25969;鍦版?#35268;嵁瀹?#38340;呴渶瑕?#37714;?#37715;?#39582;?#37822;?#37737;?#37510;?/p>

涓?#29882;敱鍣?#37929;告瘮锛?#27996;屽眰浜?#37817;?#37832;?#28051;鑸?#29999;?#37832;?#28598;?#28051;?#32515;戠粶鎺?#37721;?#37510;?#37733;?#23005;?#28641;?#37835;滆兘浣跨敤瀹冨垎鍓?#39582;?#37822;?#37737;?#38171;?#38317;?#28052;堟棤鐤?#26473;愮敤涓?#37928;勭伒娲绘?#28028;氬ぇ澶?#37819;愰珮銆?/p>

?#25956;浜庡湪浜屽眰浜?#37817;?#37832;?#28051;?#37714;?#37715;?#39582;?#37822;?#37737;?#37928;勬妧鏈?#38171;屽氨鏄疺LAN銆?#38315;?#26473;?#37714;╃敤VLAN锛屾垜浠?#37721;?#28000;ヨ嚜?#25969;璁?#29825;?#39582;?#37822;?#37737;?#37928;?#37835;勬垚锛屾?#24880;珮缃戠粶璁?#29825;?#37928;勮嚜?#25969;?#23475;銆?/p>

瀹?#37916;癡LAN鐨?#37832;?#37714;?/strong>

1. 瀹?#37916;癡LAN鐨?#37832;?#37714;?/p>

?#28266;?#24714;瑙?#27996;?ldquo;?#36127;浠涔堥渶瑕乂LAN”涔?#37722;?#38171;?#37818;?#28051;嬫潵璁╂垜浠潵浜?#29785;?#28051;涓?#27996;?#37817;?#37832;?#37828;?#28641;?#28003;?#28003;跨敤VLAN鍒?#37715;?#39582;?#37822;?#37737;?#37928;?#37510;?/p>

棣?#37711;?#38171;屽湪涓鍙?#37832;?#29825;?#32515;?#28000;?#28003;昖LAN鐨?#27996;屽眰浜?#37817;?#37832;?#28051;?#38171;?#28000;?#28003;?#39582;?#37822;?#29999;?#38318;?#28028;氳杞?#37721;戠粰闄?#37818;?#37824;剁鍙?#28598;栫殑鎵鏈?#37711;?#28000;栫鍙?Flooding)銆備?#23338;锛?#29825;$畻鏈篈鍙?#38315;?#39582;?#37822;俊?#20229;鍚?#38171;屼細琚?#26462;?#37721;戠粰绔?#37721;?銆?銆?銆?/p>

杩?#37827;?#38171;屽鏋滃湪浜?#37817;?#37832;?#28051;?#37922;熸垚绾?#37510;佽?#28613;袱涓猇LAN;鍚屾椂璁?#32515;?#32468;?#37721;?銆?灞?#27996;庣孩?#22730;VLAN銆佺鍙?銆?灞?#27996;庤?#28618;壊VLAN銆傚啀浠嶢鍙戝嚭骞?#37822;?#29999;?#37928;?#29831;?#38171;?#27996;?#37817;?#37832;?#28751;?#37721;?#28028;氭妸瀹?#26462;?#37721;戠粰鍚屽睘浜?#28051;涓猇LAN鐨?#37711;?#28000;栫鍙?mdash;—涔?#28751;?#37828;?#37722;屽睘浜庣孩?#22730;VLAN鐨勭鍙?锛屼笉浼氬啀杞?#37721;戠粰灞?#27996;庤?#28618;壊VLAN鐨勭鍙?#37510;?/p>

鍚屾牱锛孋鍙?#38315;?#39582;?#37822;俊?#20229;鏃?#38171;?#37721;?#28028;氳杞?#37721;戠粰鍏?#28000;?#28766;?#27996;庤?#28618;壊VLAN鐨勭鍙?#38171;屼笉浼氳杞?#37721;戠粰灞?#27996;庣孩?#22730;VLAN鐨勭鍙?#37510;?/p>

灏?#26473;欐牱锛孷LAN閫?#26473;?#38340;?#37714;跺箍鎾?#29999;?#26462;?#37721;?#37928;勮寖鍥?#37714;?#37715;?#27996;?#39582;?#37822;?#37737;?#37510;?#28051;?#37733;?#28051;负浜?#28186;?#27996;?#29831;?#37828;?#38171;?#28000;?#32510;?#37510;佽?#28613;袱?#22730;璇?#37714;?#28051;?#37722;?#37928;刅LAN锛屽湪瀹?#38340;呬?#36328;敤涓?#37714;?#37828;敤“VLAN ID”?#28533;?#23599;鍒?#37928;?#37510;?/p>

2.鐩?#29785;?#37734;版弿杩癡LAN

濡?#37835;?#29781;佹洿?#36127;鐩?#29785;?#37734;版弿杩癡LAN鐨?#29831;?#38171;屾垜浠?#37721;?#28000;?#37814;?#28729;冪悊瑙d负灏?#28051;鍙?#27996;?#37817;?#37832;哄湪閫?#26440;戜笂鍒?#37715;叉垚浜嗘暟鍙?#27996;?#37817;?#37832;?#37510;傚湪涓鍙?#27996;?#37817;?#37832;?#28051;?#37922;熸垚绾?#37510;佽?#28613;袱涓猇LAN锛屼篃鍙?#28000;ョ湅浣?#37828;?#28751;?#28051;鍙?#27996;?#37817;?#37832;烘崲?#20187;涓绾?#28051;钃濅袱鍙?#38095;氭嫙鐨?#27996;?#37817;?#37832;?#37510;?/p>

?#28266;绾?#37510;佽?#28613;袱涓猇LAN涔嬪?#26667;?#29112;垚鏂?#37928;刅LAN鏃?#38171;?#37721;?#28000;?#37807;宠薄?#22426;鍙堟坊鍔?#27996;?#37826;?#37928;?#27996;?#37817;?#37832;?#37510;?/p>

浣?#37828;?#38171;孷LAN鐢熸垚鐨?#38315;?#26440;戜笂鐨?#27996;?#37817;?#37832;?#37828;?#27996;?#28051;?#37929;?#38315;?#37928;?#37510;?#37733;?#23005;?#38171;屽湪浜?#37817;?#37832;?#28051;?#29825;?#32515;甐LAN鍚?#38171;屽鏋?#37832;仛鍏?#28000;?#28598;勭悊锛孷LAN?#26879;鏄棤?#30838;閫氫俊鐨?#37510;?/p>

鏄?#37828;?#37818;ュ湪鍚屼竴鍙?#27996;?#37817;?#37832;?#28051;?#38171;屼絾鍗?#37707;忓?#24532;棤?#30838;閫氫俊——杩?#28051;?#27996;嬪疄涔?#29825;?#29825;?#27996;洪毦浠?#37818;?#37721;?#37510;?#28003;?#28729;?#37827;?#37828;疺LAN鏂?#28186;?#37828;撶敤鐨?#37911;?#23536;?#38171;?#37721;堟槸浣縑LAN浠?#27996;洪毦浠ョ悊瑙?#37928;?#37720;?#37733;?#37510;?/p>

3. ?#28214;瑕乂LAN?#26879;閫氫俊鏃舵?#28052;?#37716;?/p>

閭?#28052;?#38171;屽綋?#22428;浠渶瑕佸湪涓?#37722;?#37928;刅LAN?#26879;閫氫俊鏃跺張璇?#28641;?#28003;?#37828;?#28610;藉憿?

璇?#28598;?#28729;跺啀娆?#37733;?#36423;?#28051;涓?#38171;歏LAN鏄?#39582;?#37822;?#37737;?#37510;?#38000;?#38315;氬父涓?#28051;?#39582;?#37822;?#37737;?#28052;嬮?#23544;敱璺敱鍣?#26473;?#37818;?#38171;?#39582;?#37822;?#37737;?#28052;嬮?#23384;潵寰鐨勬暟鎹寘閮?#37828;敱璺敱鍣?#28051;?#32513;?#37928;?#37510;?#37733;?#23005;?#38171;孷LAN?#26879;鐨?#38315;氫俊涔熼渶瑕佽矾?#25969;鍣?#37819;?#28186;?#28051;?#32513;?#37832;?#37716;?#38171;?#26473;?#29722;?#32457;?#28003;?ldquo;VLAN?#26879;璺敱”銆?/p>

VLAN?#26879;璺敱锛?#37721;?#28000;?#28003;跨敤?#27352;閫?#37928;?#29882;敱鍣?#38171;屼篃鍙?#28000;?#28003;跨敤涓?#28766;?#27996;?#37817;?#37832;?#37510;?#37711;?#28051;?#37928;?#37711;?#28003;撳唴瀹?#38171;?#32475;?#37832;?#37832;轰?#27692;啀缁?#29831;?#37722;?#37510;傚湪杩?#38322;屽笇鏈涘ぇ瀹?#37711;?#29825;?#28003;?#28051;?#37722;孷LAN?#26879;浜?#37929;?#38315;氫俊鏃堕渶瑕佺敤鍒?#29882;敱鍔熻兘銆?/p>

VLAN鐨?#29825;块棶?#25724;鎺?Access Link)

1.浜?#37817;?#37832;?#37928;勭鍙?#32491;诲瀷

浜?#37817;?#37832;?#37928;勭鍙?#38171;?#37721;?#28000;?#37714;嗕负浠?#28051;?#28051;?#32457;?#38171;?/p>

(1)璁块棶?#25724;鎺?Access Link)

(2)姹囪?#27702;摼鎺?Trunk Link)

鎺?#28051;嬫潵灏?#29825;╂垜浠潵渚?#23046;?#28699;?#28052;?#26473;?#28051;?#32457;?#28051;?#37722;岀鍙?#37928;?#37911;?#23536;併?#26473;?#28051;璁?#38171;岄鍏堝涔?ldquo;璁块棶?#25724;鎺?rdquo;銆?/p>

2.璁块棶?#25724;鎺?/p>

璁块棶?#25724;鎺?#38171;屾寚鐨?#37828;?ldquo;鍙?#28766;?#27996;?#28051;涓猇LAN锛屼笖浠?#37722;?#29831;LAN杞?#37721;戞暟鎹?#29999;?rdquo;鐨勭鍙?#37510;傚湪澶?#28598;氭暟鎯呭喌涓?#38171;?#29825;块棶?#25724;鎺?#37813;杩?#37928;?#37828;?#28729;?#37812;?#37832;?#37510;?/p>

閫氬父璁?#32515;甐LAN鐨?#26916;哄簭鏄?#38171;?/p>

(1)鐢熸垚VLAN

(2)璁?#28729;?#29825;块棶?#25724;鎺?鍐冲?#27692;?#21229;鍙?#28766;?#27996;?#37725;?#28051;涓猇LAN)

璁?#28729;?#29825;块棶?#25724;鎺?#37928;?#37813;嬫硶锛?#37721;?#28000;?#37828;?#27996;?#37711;?#37733;?#28729;?#37928;?#37510;?#28052;?#37721;?#28000;?#37828;?#37837;规嵁鎵杩?#37928;?#29825;$畻鏈?#38000;屽姩鎬佹敼鍙?#29825;?#28729;?#37510;傚墠鑰?#29722;?#32457;颁负“闈?#37804;乂LAN”銆?#37722;?#38000;呰嚜鐒跺氨鏄?ldquo;鍔?#37804;乂LAN”浜?#37510;?/p>

鈼?闈?#37804;乂LAN——鍩?#27996;庣鍙?/p>

闈?#37804;乂LAN鍙堣绉颁负鍩?#27996;庣鍙?#37928;刅LAN(PortBased VLAN)銆傞【鍚嶆濅箟锛屽氨鏄?#37828;?#32429;?#37816;?#28729;氬?#21229;鍙?#28766;?#27996;?#37725;?#28051;猇LAN鐨?#29825;?#28729;?#37826;规硶銆?/p>

?#25969;浜庨渶瑕?#28051;涓?#28051;?#32468;?#37721;?#37734;版寚瀹?#38171;?#37733;?#23005;ゅ綋缃戠粶涓?#37928;?#29825;$畻鏈烘暟鐩?#29906;?#26473;?#28051;瀹氭暟瀛??#30254;濡傛暟?#27368;鍙?鍚?#38171;?#29825;?#28729;氭搷浣?#28751;?#28028;?#37721;樺緱鐑?#37833;傛棤?#30254;銆?#39582;?#28051;?#38171;?#28729;?#37812;?#37832;烘瘡娆?#37721;樻洿鎵杩?#32468;?#37721;?#38171;?#38318;?#36423;呴』鍚屾?#33333;洿鏀?#29831;?#32468;?#37721;?#37813;灞濾LAN鐨?#29825;?#28729;?mdash;—杩?#37828;剧劧涓?#38315;?#37722;?#38317;?#27996;涢渶瑕?#26864;戠?#20345;敼鍙樻嫇琛?#32513;?#37835;?#37928;?#32515;戠粶銆?/p>

鈼?鍔?#37804;乂LAN

鍙?#28051;鏂归潰锛屽姩鎬乂LAN鍒?#37828;?#37837;规嵁姣?#28051;?#32468;?#37721;?#37813;杩?#37928;?#29825;$畻鏈?#38171;岄殢鏃舵敼鍙?#32468;?#37721;?#37813;灞?#37928;刅LAN銆?#26473;?#28751;?#37721;?#28000;?#38316;?#37711;?#28051;?#26473;?#37928;勬洿鏀?#29825;?#28729;?#28052;?#32491;?#37928;勬搷浣?#37510;?#37716;?#37804;乂LAN鍙?#28000;?#28598;ц嚧鍒嗕负3绫?#38171;?/p>

(1)鍩?#27996;嶮AC鍦板潃鐨刅LAN(MAC Based VLAN)

(2)鍩?#27996;?#28699;?#32515;?#37928;刅LAN(Subnet Based VLAN)

(3)鍩?#27996;庣敤鎴?#37928;刅LAN(User Based VLAN)

鍏堕棿鐨勫樊寮?#38171;屼富瑕佸湪浜?#37837;规嵁OSI鍙傜収妯?#37736;嬪摢涓灞?#37928;勪俊?#20229;鍐冲畾绔?#37721;?#37813;灞?#37928;刅LAN銆?/p>

鈼?鍩?#27996;嶮AC鍦板潃鐨刅LAN

鍩?#27996;嶮AC鍦板潃鐨刅LAN锛屽氨鏄?#38315;?#26473;囨煡璇?#39582;?#29825;板綍绔?#37721;?#37813;杩?#29825;$畻鏈?#28051;?#32515;戝崱鐨凪AC鍦板潃?#28533;鍐冲畾绔?#37721;?#37928;?#37813;灞?#37510;傚亣瀹?#37832;?#28051;涓狹AC鍦板潃“A”琚?#27996;?#37817;?#37832;?#29825;?#28729;氫负灞?#27996;嶸LAN “10”锛?#38317;?#28052;?#28051;?#29825;篗AC鍦板潃?#36127;“A”鐨?#26473;?#37721;?#29825;$畻鏈?#26473;炲湪浜?#37817;?#37832;?#37725;?#28051;?#32468;?#37721;?#38171;?#29831;?#32468;?#37721;?#38318;?#28028;氳鍒?#37714;?#37714;癡LAN 10涓?#37720;?#37510;?#29825;$畻鏈?#26473;炲湪绔?#37721;?鏃?#38171;岀鍙?灞?#27996;嶸LAN 10;鑰?#29825;$畻鏈?#26473;炲湪绔?#37721;?鏃?#38171;?#37714;?#37828;?#32468;?#37721;?灞?#27996;嶸LAN 10銆?/p>

?#25969;浜?#37828;?#37737;?#27996;嶮AC鍦板潃鍐冲畾鎵灞濾LAN鐨?#38171;?#37733;?#23005;?#37721;?#28000;ョ悊瑙d负杩?#37828;?#28051;绉嶅湪OSI鐨勭浜屽眰璁?#28729;?#29825;块棶?#25724;鎺?#37928;?#37716;炴硶銆?/p>

浣?#37828;?#38171;屽熀浜嶮AC鍦板潃鐨刅LAN锛屽湪璁?#28729;氭?#36346;?#21620;』璋冩煡鎵杩?#37818;?#37928;?#37813;鏈?#29825;$畻鏈?#37928;凪AC鍦板潃骞跺姞浠?#37927;诲綍銆?#38000;屼笖濡?#37835;?#29825;$畻鏈?#27996;?#37817;?#27996;?#32515;戝崱锛?#26473;?#37828;渶瑕佹洿鏀?#29825;?#28729;?#37510;?/p>

鈼?鍩?#27996;嶪P鍦板潃鐨刅LAN

鍩?#27996;?#28699;?#32515;?#37928;刅LAN锛?#37714;?#37828;?#38315;?#26473;?#37813;杩?#29825;$畻鏈?#37928;処P鍦板潃锛屾潵鍐冲畾绔?#37721;?#37813;灞濾LAN鐨?#37510;?#28051;嶅儚鍩?#27996;嶮AC鍦板潃鐨刅LAN锛?#37719;?#28003;?#29825;$畻鏈?#37733;犱负浜?#37817;?#27996;?#32515;戝崱鎴?#37828;?#37711;?#28000;?#37720;?#37733;犲?#33392;嚧MAC鍦板潃鏀?#37721;?#38171;?#37721;?#29781;?#28729;?#37928;処P鍦板潃涓?#37721;?#38171;屽氨浠?#37721;?#28000;?#37716;?#37711;?#37720;?#37711;?#29825;?#28729;?#37928;刅LAN銆?/p>

鍥?#23005;?#38171;屼笌鍩?#27996;嶮AC鍦板潃鐨刅LAN鐩告瘮锛岃兘澶熸洿?#36127;绠渚?#37734;版敼鍙?#32515;戠粶缁?#37835;?#37510;侷P鍦板潃鏄疧SI鍙傜収妯?#37736;?#28051;?#32471;?#28051;?#28766;?#37928;勪俊?#20229;锛?#37813;浠ユ垜浠?#37721;?#28000;ョ悊瑙d负鍩?#27996;?#28699;?#32515;?#37928;刅LAN鏄?#28051;绉嶅湪OSI鐨勭涓?#28766;?#29825;?#28729;?#29825;块棶?#25724;鎺?#37928;?#37826;规硶銆?/p>

鍩?#27996;庣敤鎴?#37928;刅LAN锛?#37714;?#37828;?#37837;规嵁浜?#37817;?#37832;?#37722;勭鍙?#37813;杩?#37928;?#29825;$畻鏈?#28051;婂綋?#22688;鐧诲綍鐨勭敤鎴?#38171;屾潵鍐冲畾璇?#32468;?#37721;?#28766;?#27996;?#37725;?#28051;猇LAN銆?#26473;?#38322;?#37928;勭敤鎴?#29831;?#37714;俊?#20229;锛屼竴鑸?#37828;?#29825;$畻鏈烘搷浣?#32495;荤粺鐧诲綍鐨勭敤鎴?#38171;屾瘮濡?#37721;?#28000;?#37828;疻indows鍩?#28051;?#28003;跨敤鐨勭敤鎴?#37722;?#37510;?#26473;?#27996;涚敤鎴?#37722;嶄俊?#20229;锛屽睘浜嶰SI绗?#37733;涘眰浠?#28051;?#37928;勪俊?#20229;銆?/p>

鎬?#37928;勬潵璇?#38171;屽?#20914;畾绔?#37721;?#37813;灞濾LAN鏃跺埄?#25956;鐨勪俊?#20229;?#28266;OSI涓?#37928;?#28766;傞潰瓒婇珮锛屽氨瓒?#38315;?#27996;?#37835;勫缓?#20242;娲?#28598;?#37721;?#37928;?#32515;戠粶銆?/p>

VLAN鐨勬?#22250;?#27702;摼鎺?Trunk Link)

1.?#28214;瑕佽缃?#29882;?#29906;?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN鏃?hellip;…

鍒版?#36127;姝?#38171;屾垜浠?#28699;?#28052;?#37928;?#38318;?#37828;?#28003;跨敤鍗?#37721;?#27996;?#37817;?#37832;?#29825;?#32515;甐LAN鏃?#37928;?#37807;呭喌銆?#38317;?#28052;?#38171;屽鏋滈渶瑕佽缃?#29882;?#29906;?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN鏃跺?#22557;浣?#37723;?

?#28266;瑙?#37714;?#28028;?#28051;氱骇缃戠?#28356;椂锛屽?#22559;湁鍙兘浼氶亣鍒伴?#36346;睘浜?#37722;屼竴閮ㄩ棬鐨勭敤鎴?#37714;?#37825;e湪鍚屼竴搴у缓绛?#37911;?#28051;?#37928;勪笉鍚屾ゼ灞?#37928;?#37807;呭喌锛?#26473;?#37827;跺彲?#20824;灏遍渶瑕佽?#38095;戝?#26495;浣?#29882;?#29906;?#28598;?#37721;?#27996;?#37817;?#37832;?#29825;?#32515;甐LAN鐨勯棶棰?#27996;?#37510;傚亣璁?#37832;夊涓嬪浘鎵绀?#37928;?#32515;戠粶锛屼笖?#28214;瑕佸皢涓?#37722;屾ゼ灞?#37928;凙銆丆?#25328;B銆丏璁?#32515;负鍚屼竴涓猇LAN銆?/p>

杩?#37827;?#37832;鍏抽敭鐨?#28751;?#37828;?ldquo;浜?#37817;?#37832;??#25328;浜?#37817;?#37832;?璇?#28641;?#28003;?#26473;?#37818;?#37813;嶅?#34249;憿?”

鏈绠鍗?#37928;?#37826;规硶锛岃嚜?#21159;鏄湪浜?#37817;?#37832;??#25328;浜?#37817;?#37832;?涓?#37722;?#29825;?#28051;涓?#32510;?#37510;佽摑VLAN涓撶敤鐨?#37818;?#37721;?#39582;?#27996;掕仈浜?#37510;?/p>

浣?#37828;?#38171;?#26473;?#28051;?#37716;炴硶浠?#37813;?#28766;曟у拰绠$悊鏁?#37916;囨潵鐪嬮兘涓嶅ソ銆備?#23338;锛屽湪鐜?#37832;?#32515;戠粶鍩?#32429;涓婂啀鏂板缓VLAN鏃?#38171;屼负浜?#29825;?#26473;?#28051;猇LAN?#20824;澶?#27996;?#38315;?#38171;屽氨?#28214;瑕佸湪浜?#37817;?#37832;洪棿杩?#37818;?#37826;?#37928;?#32515;戠嚎銆傚缓绛?#37911;?#22948;?#28766;傞棿鐨勭旱鍚戝竷绾?#37828;瘮杈冮?#33636;儲鐨?#38171;屼竴鑸?#28051;嶈兘?#25969;鍩?#28766;傜?#24714;浜?#37723;橀殢鎰?#26473;?#29723;?#37510;?#39582;?#28051;?#38171;孷LAN瓒?#28598;?#38171;屾ゼ灞傞棿(涓?#37837;?#37734;?#29831;?#37828;?#27996;?#37817;?#37832;洪棿)浜掕仈鎵?#28214;鐨勭鍙?#28052;熻?#23107;潵瓒?#28598;?#38171;?#27996;?#37817;?#37832;虹鍙?#37928;?#37714;╃敤鏁?#37916;?#28003;?#37828;?#28725;硅?#21228;簮鐨勪竴绉嶆氮璐?#37510;?#28052;?#38340;?#37714;?#27996;?#32515;戠粶鐨?#37813;?#28766;?#37510;?/p>

?#36127;浜?#38316;?#37711;?#26473;?#32457;?#28003;?#37825;?#37916;?#37928;?#26473;?#37818;?#37826;?#23534;?#38171;?#27996;?#28000;?#37807;冲?#28852;硶璁?#27996;?#37817;?#37832;洪棿浜掕仈鐨?#32515;戠?#22359;泦涓?#37714;?#28051;鏍?#28051;?#38171;?#26473;?#37827;?#28003;跨敤鐨?#28751;?#37828;?#23033;囪?#27702;摼鎺?Trunk Link)銆?/p>

2.浣?#29835;撴?#22250;?#27702;摼鎺?

姹囪?#27702;摼鎺?Trunk Link)鎸?#37928;?#37828;兘澶?#26462;?#37721;戝涓?#28051;?#37722;孷LAN鐨?#38315;氫俊鐨勭鍙?#37510;?/p>

姹囪?#27702;摼璺?#28051;婃祦閫?#37928;勬暟鎹?#29999;?#38171;?#38318;借闄?#37716;?#27996;嗙敤浜?#29831;?#37714;?#37714;?#28766;?#27996;?#37725;?#28051;猇LAN鐨?#37911;规?#23105;俊?#20229;銆?/p>

鐜板湪鍐?#29825;╂垜浠?#37733;?#26473;?#28598;存潵鑰?#38095;戜竴涓嬪垰鎵?#38317;?#28051;?#32515;戠粶濡?#37835;?#38322;囩敤姹囪?#27702;摼璺?#37721;堜?#27692;浣?#37723;??#25956;鎴?#37721;渶瑕?#32480;鍗?#37734;?#28751;?#27996;?#37817;?#37832;洪棿浜掕仈鐨勭鍙?#29825;?#28729;氫负姹囪?#27702;摼鎺?#28751;?#37721;?#28000;?#27996;?#37510;?#26473;?#37827;?#28003;跨敤鐨?#32515;戠嚎杩?#37828;櫘閫?#37928;刄TP绾?#38171;?#38000;屼笉鏄?#28000;涔?#37711;?#28000;栫殑鐗规畩甯?#32510;?#37510;?#37733;句緥涓?#37828;?#27996;?#37817;?#37832;洪棿浜掕仈锛?#37733;?#23005;ら渶瑕佺敤浜?#37721;夌?#25358;潵杩?#37818;?#37510;?/p>

鎺?#28051;嬫潵锛?#29825;╂垜浠?#37711;?#28003;撶湅鐪嬫?#22250;?#27702;摼鎺?#37828;?#28641;?#28003;?#28729;?#37916;?#29882;?#29906;?#27996;?#37817;?#37832;洪棿鐨刅LAN鐨?#37510;?/p>

A鍙?#38315;?#37928;勬暟鎹?#29999;?#28000;?#27996;?#37817;?#37832;?缁?#26473;囨?#22250;?#27702;摼璺?#37714;?#26440;?#27996;?#37817;?#37832;?鏃?#38171;屽湪?#26271;鎹?#29999;?#28051;?#38340;?#37716;?#27996;?#29723;?#32448;?#28766;?#27996;庣孩?#22730;VLAN鐨勬爣璁?#37510;?/p>

浜?#37817;?#37832;?鏀跺?#29256;暟鎹?#29999;?#37722;?#38171;岀粡杩囨鏌LAN?#29219;璇?#37721;?#37916;?#26473;?#28051;暟鎹?#29999;?#37828;?#28766;?#27996;庣孩?#22730;VLAN鐨?#38171;?#37733;?#23005;?#37720;?#38340;ゆ爣璁?#37722;?#37837;规嵁?#28214;瑕佸皢澶?#37720;?#37928;勬暟鎹?#29999;?#37721;?#26462;?#37721;戠粰鍏?#28000;?#28766;?#27996;庣孩?#22730;VLAN鐨勭鍙?#37510;?#26473;?#37827;?#37928;?#26462;?#38315;?#38171;屾槸鎸囩粡杩?#32429;?#29825;?#37929;爣MAC鍦板潃骞?#28051;嶮AC鍦板潃鍒?#29723;ㄦ瘮瀵?#37722;?#37721;?#26462;?#37721;戠粰鐩爣MAC鍦板潃鎵杩?#37928;勭鍙?#37510;?#37721;?#37832;夊綋?#26271;鎹?#29999;?#37828;?#28051;涓?#39582;?#37822;?#29999;?#37510;佸?#27693;挱甯?#37812;?#37828;?#37929;爣涓?#37828;?#37928;?#29999;?#37827;?#38171;?#28729;?#37813;?#28028;氳杞?#37721;戝埌鎵鏈?#28766;?#27996;庣孩?#22730;VLAN鐨勭鍙?#37510;?/p>

钃濊壊VLAN鍙?#38315;佹暟鎹?#29999;?#37827;?#37928;?#37807;呭舰涔?#28051;?#23005;?#37929;?#37722;?#37510;?/p>

閫?#26473;囨?#22250;?#27702;摼璺?#37827;?#38340;?#37716;?#37928;刅LAN璇?#37714;俊?#20229;锛?#37832;?#37721;兘鏀?#37816;佹爣鍑?#37928;?ldquo;IEEE 802.1Q”鍗?#29825;?#38171;屼篃鍙兘鏄疌isco浜?#37725;佺嫭鏈?#37928;?ldquo;ISL(Inter Switch Link)”銆傚鏋?#27996;?#37817;?#37832;烘敮鎸佽繖浜?#29785;勬牸锛?#38317;?#28052;堢敤鎴?#28751;辫兘澶熼?#27195;晥鐜?#37734;版瀯绛戞í璺?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN銆?/p>

鍙?#28598;?#38171;屾?#22250;?#27702;摼璺?#28051;婃祦閫氱潃澶?#28051;猇LAN鐨勬暟鎹?#38171;岃嚜?#21159;?#30987;杞?#26440;?#38322;?#37510;?#37733;?#23005;?#38171;屽湪璁?#28729;氭?#22250;?#27702;摼鎺?#37827;?#38171;?#37832;?#28051;涓墠鎻?#28751;?#37828;?#36423;呴?#32472;敮鎸?00Mbps浠?#28051;?#37928;勪紶杈?#38315;熷害銆?/p>

鍙?#28598;?#38171;岄粯璁?#37833;?#28000;?#28051;?#38171;屾?#22250;?#27702;摼鎺?#28028;?#26462;?#37721;?#27996;?#37817;?#37832;?#28051;婂?#27194;湪鐨?#37813;鏈塚LAN鐨勬暟鎹?#37510;?#37817;?#28051;涓?#29785;掑害?#28229;锛?#37721;?#28000;?#29825;や负姹囪?#27702;摼鎺?绔?#37721;?鍚屾?#36346;睘浜?#27996;?#37817;?#37832;?#28051;?#37813;鏈?#37928;刅LAN銆傜敱浜?#28729;?#38340;呭?#26050;敤涓?#23536;?#37721;兘骞?#28051;嶉渶瑕佽浆鍙?#37813;鏈塚LAN鐨勬暟鎹?#38171;?#37733;?#23005;や负浜?#37713;?#26462;?#27996;?#37817;?#37832;?#37928;勮礋杞?#37510;?#28052;熶负浜?#37713;?#28751;戝甯?#28729;?#37928;勬氮璐?#38171;屾垜浠?#37721;?#28000;?#38315;?#26473;囩敤鎴?#29825;?#28729;?#38340;?#37714;惰兘澶熺?#24533;敱姹囪?#27702;摼璺?#27996;掕仈鐨刅LAN銆?/p>

鍏?#27996;嶪EEE 802.1Q?#25328;ISL鐨?#37711;?#28003;撳唴瀹?#38171;屽皢?#28266;涓?#28051;璁?#28051;?#37819;?#37714;?#37510;?/p>

3.璁块棶?#25724;鎺?#37928;勬荤粨

缁?#28051;?#37813;杩?#38171;?#29825;?#28729;?#29825;块棶?#25724;鎺?#37928;?#37813;嬫硶鏈?#38344;?#37804;乂LAN?#25328;鍔?#37804;乂LAN涓?#32457;?#38171;?#37711;?#28051;?#37716;?#37804;乂LAN鍙?#37721;?#28000;?#32513;?#32513;?#32513;?#37714;嗘垚鍑犱釜灏?#32491;?#37510;?/p>

鍏?#28051;?#37737;?#27996;?#28699;?#32515;?#37928;刅LAN?#25328;鍩?#27996;庣敤鎴?#37928;刅LAN鏈?#37721;兘鏄?#32515;戠粶璁?#28598;?#37720;傚晢浣跨敤鐙?#37832;?#37928;?#37719;?#29825;?#28729;?#37916;?#37928;?#38171;屼笉鍚屽?#20634;晢鐨?#29825;?#28598;?#28052;嬮棿浜掕仈鏈?#37721;兘?#22189;鐜?#37711;?#28729;规ч棶棰?鍥?#23005;ゅ湪閫?#37815;?#27996;?#37817;?#37832;烘椂锛屼竴瀹?#29781;佹敞鎰?#27996;?#37711;?#32429;?#29825;?#37510;?/p>

涓?#29723;?#37804;荤粨浜?#38344;?#37804;乂LAN?#25328;鍔?#37804;乂LAN鐨?#37929;?#37711;充俊?#20229;銆?/p>

绉?#32491;?#29785;?#29831;?/p>

闈?#37804;乂LAN(鍩?#27996;庣鍙?#37928;刅LAN)灏?#27996;?#37817;?#37832;?#37928;?#37722;勭鍙?#37733;?#28729;氭?#22248;淳缁橵LAN

鍔?#37804;乂LAN鍩?#27996;嶮AC鍦板潃鐨刅LAN鏍规嵁鍚勭鍙?#37813;杩?#29825;$畻鏈?#37928;凪AC鍦板潃璁?#28729;?/p>

鍩?#27996;?#28699;?#32515;?#37928;刅LAN鏍规嵁鍚勭鍙?#37813;杩?#29825;$畻鏈?#37928;処P鍦板潃璁?#28729;?/p>

鍩?#27996;庣敤鎴?#37928;刅LAN鏍规嵁绔?#37721;?#37813;杩?#29825;$畻鏈?#28051;婄?#35826;綍?#25956;鎴?#29825;?#28729;?/p>

VLAN鐨勬?#22250;仛鏂?#23534;?mdash;—IEEE802.1Q涓嶪SL

1.姹囪仛鏂?#23534;?/p>

?#28266;浜?#37817;?#37832;?#37928;勬?#22250;?#27702;摼鎺?#28051;?#38171;?#37721;?#28000;?#38315;?#26473;?#28725;规暟鎹?#29999;?#38340;?#37716;燰LAN?#20426;?#20229;锛屾瀯?#32531;璺?#29906;?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN銆?/p>

闄?#37716;燰LAN?#20426;?#20229;鐨?#37826;规硶锛?#37832;鍏?#37832;?#28000;?#29723;?#37804;?#37928;?#37832;?#38171;?/p>

(1)IEEE 802.1Q

(2)ISL

鐜板湪灏?#29825;╂垜浠湅?#28229;杩?#28051;?#32457;?#37719;?#29825;?#37714;?#37714;?#28641;?#28003;?#28725;规暟鎹?#29999;?#38340;?#37716;燰LAN?#20426;?#20229;銆?/p>

2.IEEE 802.1Q

IEEE 802.1Q锛屼織绉?ldquo;Dot One Q”锛屾槸缁?#26473;嘔EEE璁?#29831;?#37928;勫?#35268;暟鎹?#29999;?#38340;?#37716;燰LAN璇?#37714;俊?#20229;鐨?#37719;?#29825;?#37510;?/p>

?#28266;姝?#38171;?#29831;?#28598;?#28729;?#37711;?#37733;?#36423;?#28051;涓?#28000;?#28598;?#32515;戞暟鎹?#29999;?#37928;勬爣鍑?#37837;?#23534;?#37510;?/p>

IEEE 802.1Q鎵闄?#37716;?#37928;刅LAN璇?#37714;俊?#20229;锛屼綅浜庢暟鎹?#29999;?#28051;?ldquo;鍙?#38315;佹簮MAC鍦板潃”涓?ldquo;绫?#37714;?#37737;?rdquo;(Type Field)涔嬮棿銆?#37711;?#28003;撳唴瀹逛负2瀛楄妭鐨凾PID(Tag Protocol IDentifier)?#25328;2瀛楄妭鐨凾CI(Tag Control Information)锛?#37711;?#29825;?瀛楄妭銆?/p>

?#28266;?#26271;鎹?#29999;?#28051;?#23075;?#37716;?#27996;?瀛楄妭鐨勫唴瀹?#38171;?#38317;?#28052;圕RC鍊艰嚜?#21159;涔?#28028;?#37832;?#37813;鍙樺寲銆?#26473;?#37827;舵暟鎹?#29999;?#28051;?#37928;凜RC鏄?#37819;?#37711;PID銆乀CI鍚?#38171;屽?#29808;寘鎷?#28729;?#28000;湪鍐?#37928;勬暣涓暟鎹?#29999;?#38322;?#37826;?#29825;$畻鍚?#37813;寰?#37928;勫?#37510;?/p>

鑰屽綋?#26271;鎹?#29999;?#32450;诲紑姹囪?#27702;摼璺?#37827;?#38171;孴PID?#25328;TCI浼氳鍘?#38340;?#38171;?#26473;?#37827;?#26473;?#28028;?#26473;?#29723;屼竴娆RC鐨?#38322;?#37826;?#29825;$畻銆?/p>

TPID瀛楁?#38747;湪浠?#28598;?#32515;戞姤鏂?#28051;?#37813;澶勪綅缃?#28051;?#28051;?#29999;LAN Tag鐨勬姤鏂?#28051;?#37719;?#29825;?#32491;诲?#23338;?#26945;鎵澶勪綅缃?#37929;?#37722;?#37510;俆PID鐨勫?#37733;?#28729;氫负0x8100锛?#28729;?#37837;囩ず缃戠粶甯?#37813;?#26462;?#37928;?02.1Q绫诲瀷锛?#27996;?#37817;?#37832;洪?#26473;?#28729;冩潵纭?#28729;氭暟鎹?#29999;?#37712;?#38340;?#37716;?#27996;?#37737;?#27996;嶪EEE 802.1Q鐨刅LAN?#20426;?#20229;銆?#38000;?#28729;炶川涓?#37928;刅LAN ID锛屾槸TCI涓?#37928;?2?#32133;鍏?#37510;傜敱浜?#37804;?#37711;?#37832;?2?#32133;锛?#37733;?#23005;?#37832;澶?#37721;?#28186;?#29831;?#37714;?096涓猇LAN銆?/p>

鍩?#27996;嶪EEE 802.1Q闄?#37716;?#37928;刅LAN?#20426;?#20229;锛屽氨鍍忓湪浼?#38315;?#37911;?#37725;佹椂闄?#37716;?#37928;勬爣绛?#37510;?#37733;?#23005;?#38171;?#28729;?#28052;熻绉?#28003;?ldquo;?#29219;绛惧瀷VLAN”(Tagging VLAN)銆?/p>

3.ISL(Inter Switch Link)

ISL锛屾槸Cisco浜?#37725;佹敮鎸?#37928;勪竴绉?#28051;嶪EEE 802.1Q绫?#28028;?#37928;?#37510;佺敤浜庡湪姹囪?#27702;摼璺?#28051;?#38340;?#37716;燰LAN?#20426;?#20229;鐨?#37719;?#29825;?#37510;?/p>

浣跨敤ISL鍚?#38171;屾瘡涓暟鎹?#29999;?#28598;?#38318;?#38318;?#28028;氳闄?#37716;?6瀛楄妭鐨?ldquo;ISL?#23512;澶?ISL Header)”锛?#39582;?#28051;斿湪甯?#28751;?#29999;?#28051;?#38315;?#26473;?#28725;瑰寘鎷琁SL?#23512;澶村湪鍐?#37928;勬暣涓暟鎹?#29999;?#26473;?#29723;?#29825;$畻鍚?#23536;?#37714;?#37928;?瀛楄妭CRC鍊?#37510;?#37817;?#38000;岃█涔?#38171;屽氨鏄?#37804;?#37711;卞鍔?#27996;?0瀛楄妭鐨勪俊?#20229;銆?/p>

?#28266;浣跨敤ISL鐨?#37916;?#28583;?#28051;?#38171;屽綋?#26271;鎹?#29999;?#32450;诲紑姹囪?#27702;摼璺?#37827;?#38171;?#37721;?#29781;?#32480;鍗?#37734;?#37720;?#38340;SL?#23512;澶村拰鏂癈RC灏?#37721;?#28000;?#27996;?#37510;傜敱浜?#37720;?#37711;?#37928;勬暟鎹?#29999;?#37721;?#37711;禖RC閮借瀹屾?#32736;?#28616;暀锛?#37733;?#23005;ゆ棤?#28214;閲?#37826;?#29825;$畻CRC銆?/p>

ISL鏈夊?#20636;敤ISL?#23512;澶村拰鏂癈RC灏?#37720;熸暟鎹?#29999;?#37825;?#28051;寘瑁硅?#38155;潵锛?#37733;?#23005;?#28052;熻绉颁负“灏佽鍨媀LAN”(Encapsulated VLAN)銆?/p>

?#28214;瑕佹敞鎰?#37928;?#37828;?#38171;屼笉璁?#37828;疘EEE802.1Q鐨?ldquo;Tagging VLAN”锛?#26473;?#37828;疘SL鐨?ldquo;Encapsulated VLAN”锛?#38318;?#28051;?#37828;?#23536;?#28051;?#28725;?#37928;勭О璋?#37510;?#28051;?#37722;?#37928;勪功绫?#28051;?#37721;?#38000;冭祫鏂?#28051;?#38171;屼笂杩?#29831;?#29831;?#37832;?#37721;兘琚?#23075;?#37722;堜?#36328;敤锛?#37733;?#23005;ら渶瑕佸ぇ瀹跺湪瀛?#28052;?#37827;舵牸澶栨敞鎰?#37510;?/p>

骞?#28051;旂敱浜嶪SL鏄疌isco鐙?#37832;?#37928;?#37719;?#29825;?#38171;?#37733;?#23005;?#37721;兘?#25956;浜嶤isco缃戠粶璁?#28598;?#28052;嬮棿鐨?#27996;掕仈銆?/p>

VLAN?#26879;璺敱

1.VLAN?#26879;璺敱鐨?#36423;?#29781;佹?/p>

鏍规嵁鐩墠?#36127;姝?#28699;?#28052;?#37928;勭煡璇?#38171;屾垜浠?#23480;茬?#24533;煡閬?#28051;?#37721;?#29825;$畻鏈?#37719;?#28003;?#26473;?#37818;ュ湪鍚屼竴鍙?#27996;?#37817;?#37832;?#28051;?#38171;?#37721;?#29781;佹墍灞?#37928;刅LAN涓?#37722;屽氨?#26852;?#30838;鐩?#37818;?#38315;氫俊銆?#37818;?#28051;嬫潵?#22428;浠?#28751;?#29781;佸涔?#37928;?#28751;?#37828;?#28641;?#28003;曞湪涓?#37722;?#37928;刅LAN?#26879;杩?#29723;?#29882;敱锛屼娇鍒?#28766;?#28051;?#37722;孷LAN鐨勪富鏈鸿兘澶?#27996;?#37929;?#38315;氫俊銆?/p>

棣?#37711;?#38171;?#37711;堟潵澶?#28052;犱竴涓嬩负浠涔?#28051;?#37722;孷LAN?#26879;涓?#38315;?#26473;?#29882;敱灏辨棤?#30838;閫氫俊銆傚湪LAN鍐?#37928;?#38315;氫俊锛屽?#21620;?#35826;湪?#26271;鎹?#29999;?#28598;?#28051;?#37816;?#28729;?#38315;氫俊鐩爣鐨凪AC鍦板潃銆?#38000;屼负浜?#38014;?#37721;朚AC鍦板潃锛孴CP/IP鍗?#29825;?#28051;?#28003;跨敤鐨?#37828;疉RP銆侫RP瑙?#37835;怣AC鍦板潃鐨?#37826;规硶锛?#37714;?#37828;?#38315;?#26473;?#39582;?#37822;?#37510;?#28052;?#28751;?#37828;?#29831;?#38171;屽鏋?#39582;?#37822;?#37814;?#37826;囨棤?#30838;鍒?#26440;?#38171;?#38317;?#28052;?#28751;辨棤浠?#29785;?#37835;怣AC鍦板潃锛?#27996;?#37719;虫棤?#30838;鐩?#37818;?#38315;氫俊銆?/p>

璁$畻鏈?#37714;?#28766;?#28051;?#37722;?#37928;刅LAN锛屼篃灏?#37808;?#37723;崇潃鍒?#28766;?#28051;?#37722;?#37928;?#39582;?#37822;?#37737;?#38171;岃嚜鐒舵敹涓?#37714;板郊姝?#37928;?#39582;?#37822;?#37814;?#37826;?#37510;?#37733;?#23005;?#38171;屽睘浜?#28051;?#37722;孷LAN鐨?#29825;$畻鏈?#28052;嬮?#23384;棤?#30838;鐩?#37818;?#27996;?#37929;?#38315;氫俊銆備负浜嗚兘澶熷湪VLAN?#26879;閫氫俊锛岄渶瑕?#37714;╃敤OSI鍙傜収妯?#37736;?#28051;洿?#29678;涓灞?mdash;—缃戠粶灞?#37928;勪俊?#20229;(IP鍦板潃)?#28533;杩?#29723;?#29882;敱銆?#37711;?#27996;?#29882;敱鐨?#37711;?#28003;撳唴瀹?#38171;?#28000;?#37722;?#37832;?#37832;轰?#27692;啀璇?#32513;?#29785;?#29831;?#37722;?#37510;?/p>

璺敱鍔熻兘锛屼竴鑸?#28051;?#29781;佺敱璺敱鍣?#37819;?#28186;?#37510;?#28003;嗗湪浠?#28598;?#37928;?#28766;鍩?#32515;?#38322;?#38171;屾垜浠?#28052;熺粡甯?#37714;╃敤甯?#37832;?#29882;敱鍔熻兘鐨?#27996;?#37817;?#37832;?mdash;—涓?#28766;?#27996;?#37817;?#37832;?Layer 3 Switch)?#28533;瀹?#37916;?#37510;?#37818;?#28051;嬫潵灏?#29825;╂垜浠?#37714;?#37714;湅?#28229;浣跨敤璺敱鍣ㄥ拰涓?#28766;?#27996;?#37817;?#37832;?#26473;?#29723;孷LAN?#26879;璺敱鏃?#37928;?#37807;呭喌銆?/p>

2.浣跨敤璺敱鍣?#26473;?#29723;孷LAN?#26879;璺敱

?#28266;浣跨敤璺敱鍣?#26473;?#29723;孷LAN?#26879;璺敱鏃?#38171;屼笌鏋勫?#28888;í璺?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN鏃?#37928;?#37807;呭喌绫?#28028;?#38171;屾垜浠?#26473;?#37828;?#28028;氶亣鍒?ldquo;璇?#28641;?#28003;?#26473;?#37818;?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;?rdquo;杩?#28051;棶棰?#37510;?#29882;敱鍣ㄥ拰浜?#37817;?#37832;?#37928;?#37818;?#32510;?#37826;?#23534;?#38171;屽ぇ?#22183;鏈?#28000;?#28051;?#28051;?#32457;?#38171;?/p>

(1)灏?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;?#28051;?#37928;勬瘡涓猇LAN鍒?#37714;?#26473;?#37818;?/p>

(2)涓?#29825;篤LAN鏈?#28598;氬?#25116;釜锛?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;洪兘鍙敤涓鏉?#32515;戠嚎杩?#37818;?/p>

鏈瀹?#37828;?#37807;冲埌鐨?#38171;屽綋?#21159;杩?#37828;?ldquo;鎶?#29882;敱鍣ㄥ拰浜?#37817;?#37832;?#28000;LAN?#36127;鍗曚綅鍒?#37714;敤缃戠嚎杩?#37818;?rdquo;浜?#37510;傚皢浜?#37817;?#37832;?#28051;婄敤浜庡拰璺敱鍣?#27996;掕仈鐨勬瘡涓?#32468;?#37721;?#29825;句负璁块棶?#25724;鎺?Access Link)锛岀?#36346;悗鍒?#37714;敤缃戠嚎涓?#29882;敱鍣?#28051;?#37928;勭嫭绔嬬鍙?#27996;掕仈銆傚涓嬪浘鎵绀?#38171;?#27996;?#37817;?#37832;?#28051;?#37832;?涓猇LAN锛?#38317;?#28052;?#28751;遍渶瑕佸湪浜?#37817;?#37832;?#28051;?#26864;勭暀2涓?#32468;?#37721;g敤浜?#28051;?#29882;敱鍣?#27996;掕仈;璺敱鍣?#28051;?#37722;屾牱?#28214;瑕佹湁2涓?#32468;?#37721;?涓?#38000;?#28052;嬮?#23544;敤2鏉?#32515;戠嚎鍒?#37714;?#26473;?#37818;?#37510;?/p>

濡?#37835;?#38322;囩敤杩?#28051;?#37716;炴硶锛屽ぇ瀹跺簲璇?#28051;嶉毦鎯宠薄瀹?#37928;?#37813;?#28766;曟?#23536;堟垚?#26870;棰?#37510;傛?#24531;鍔犱竴涓?#37826;?#37928;刅LAN锛?#38318;介渶瑕佹秷鑰?#29882;敱鍣?#37928;勭鍙e拰浜?#37817;?#37832;?#28051;?#37928;?#29825;块棶?#25724;鎺?#38171;?#38000;屼笖杩橀渶瑕?#38322;?#37826;?#29999;?#29825;?#28051;鏉?#32515;戠嚎銆?#38000;?#29882;敱鍣?#38171;?#38315;氬父涓?#28028;氬甫鏈?#28598;?#28598;歀AN鎺?#37721;?#37928;?#37510;?#37826;板缓VLAN鏃?#38171;屼负浜嗗?#29808;?#26047;鍔?#37928;刅LAN鎵?#28214;鐨勭鍙?#38171;屽氨蹇呴』灏?#29882;敱鍣?#37719;囩骇?#22426;甯?#37832;?#28598;?#28051;狶AN鎺?#37721;?#37928;勯珮绔?#27996;?#37725;?#38171;?#26473;?#38318;?#37714;嗘垚鏈?#37510;佽繕鏈?#38322;?#37826;?#29999;?#32510;?#37813;甯︽潵鐨勫紑閿锛?#38318;?#28003;?#23536;?#26473;?#32457;?#37818;?#32510;挎?#26335;垚?#36127;涓绉?#28051;?#37721;?#23046;?#26473;?#37928;?#37716;炴硶銆?/p>

閭?#28052;?#38171;岀浜岀鍔炴硶“涓?#29825;篤LAN?#26271;鐩?#28598;氬皯锛?#38318;?#37721;敤涓鏉?#32515;戠嚎杩?#37818;?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;?rdquo;鍛??#32139;浣跨敤涓鏉?#32515;戠嚎杩?#37818;?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;?#37510;佽繘琛孷LAN?#26879;璺敱鏃?#38171;岄渶瑕佺敤鍒版?#22250;?#27702;摼鎺?#37510;?/p>

鍏?#28003;?#28729;?#37916;?#26473;囩?#23337;负锛氶鍏?#28751;嗙敤浜?#26473;?#37818;?#29882;敱鍣?#37928;?#27996;?#37817;?#37832;虹鍙?#29825;句负姹囪?#27702;摼鎺?Trunk Link)锛?#38000;?#29882;敱鍣?#28051;?#37928;勭鍙?#28052;?#36423;呴?#32472;敮鎸佹?#22250;?#27702;摼璺?#37510;?#37721;屾柟?#25956;浜?#23033;囪?#27702;摼璺?#37928;?#37719;?#29825;嚜?#21159;涔?#36423;呴』鐩?#37722;?#37510;?#37818;ョ潃?#28266;璺敱鍣?#28051;?#28729;?#28052;夊?#29808;簲鍚勪釜VLAN鐨?ldquo;瀛?#37818;?#37721;?rdquo;(Sub Interface)銆傚敖绠?#28729;?#38340;?#28051;?#27996;?#37817;?#37832;?#26473;?#37818;?#37928;?#37911;╃悊绔?#37721;?#37721;?#37832;?#28051;涓?#38171;屼?#21975;湪?#24714;璁?#28051;婃垜浠?#37721;?#28000;?#37814;?#28729;冨垎鍓蹭负澶?#28051;?#38095;氭?#29114;鍙?#37510;?/p>

VLAN灏?#27996;?#37817;?#37832;?#28000;?#38315;?#26440;戜笂鍒?#37715;叉垚浜?#28598;?#37721;?#38171;?#37733;?#38000;岀敤浜嶸LAN?#26879;璺敱鐨?#29882;敱鍣?#38171;屼篃蹇呴?#32472;嫢鏈?#37714;?#37714;?#28725;瑰簲鍚勪釜VLAN鐨?#38095;氭嫙鎺?#37721;?#37510;?/p>

閲囩敤杩?#32457;?#37826;规硶鐨?#29831;?#38171;?#37719;?#28003;?#28052;?#37722;庡湪浜?#37817;?#37832;?#28051;?#37826;板缓VLAN锛?#28000;?#37721;渶瑕?#28051;鏉?#32515;戠嚎杩?#37818;?#27996;?#37817;?#37832;哄拰璺敱鍣?#37510;傜敤鎴?#37721;渶瑕佸湪璺敱鍣?#28051;?#37826;?#29825;?#28051;涓?#28725;瑰簲鏂癡LAN鐨勫瓙鎺?#37721;?#28751;?#37721;?#28000;?#27996;?#37510;?#28051;庡墠?#28528;鐨?#37826;规硶鐩告瘮锛?#37813;?#28766;曟?#29781;佸己寰?#28598;?#38171;屼篃涓嶇敤鎷?#36423;冮渶瑕?#37719;囩骇LAN鎺?#37721;f暟涓嶈冻鐨?#29882;敱鍣?#37812;?#37828;?#38322;?#37826;?#29999;?#32510;?#37510;?/p>

3.鍚屼竴VLAN鍐?#37928;?#38315;氫俊

鎺?#28051;嬫潵锛屾垜浠?#32513;?#32513;?#28699;?#28052;犱?#36328;敤姹囪?#27702;摼璺?#26473;?#37818;?#27996;?#37817;?#37832;?#28051;?#29882;敱鍣?#37827;?#38171;孷LAN?#26879;璺敱鏄?#28641;?#28003;?#26473;?#29723;?#37928;?#37510;傚涓嬪浘鎵绀?#38171;屼负鍚?#37721;?#29825;$畻鏈?#28000;?#37721;?#29882;敱鍣?#37928;勫瓙鎺?#37721;?#29825;?#28729;欼P鍦板潃銆?/p>

绾㈣壊VLAN(VLAN ID=1)鐨?#32515;戠粶鍦板潃?#36127;192.168.1.0/24锛?#38019;濊壊VLAN(VLAN ID=2)鐨?#32515;戠粶鍦板潃?#36127;192.168.2.0/24銆?#37722;?#29825;$畻鏈?#37928;凪AC鍦板潃鍒?#37714;负A/B/C/D锛?#29882;敱鍣?#23033;囪?#27702;摼鎺?#32468;?#37721;?#37928;凪AC鍦板潃?#36127;R銆?#27996;?#37817;?#37832;洪?#26473;?#28725;?#37722;勭鍙?#37813;杩?#29825;$畻鏈篗AC鍦板潃鐨勫涔?#38171;岀?#29112;垚濡?#28051;?#37928;凪AC鍦板潃鍒?#29723;?#37510;?/p>

棣?#37711;?#38000;?#38095;?#29825;$畻鏈篈涓?#37722;屼竴VLAN鍐?#37928;?#29825;$畻鏈築涔嬮棿閫氫俊鏃?#37928;?#37807;呭舰銆?/p>

璁$畻鏈篈鍙戝嚭ARP璇锋?#20633;俊?#20229;锛?#29831;锋眰瑙?#37835;怋鐨凪AC鍦板潃銆?#27996;?#37817;?#37832;烘?#36346;?#29256;暟鎹?#29999;?#37722;?#38171;屾绱AC鍦板潃鍒?#29723;?#28051;?#28051;?#37824;朵俊绔?#37721;?#37722;屽睘涓涓猇LAN鐨勮〃椤?#37510;傜粨鏋?#37721;?#37916;?#38171;?#29825;$畻鏈築杩?#37818;ュ湪绔?#37721;?涓?#38171;?#27996;?#37828;?#27996;?#37817;?#37832;?#28751;嗘暟鎹?#29999;?#26462;?#37721;戠粰绔?#37721;?锛?#37832;缁?#29825;$畻鏈築鏀跺埌璇?#29999;?#37510;?#37824;跺?#25116;俊鍙屾柟鍚屽睘涓涓猇LAN涔嬪唴鐨?#38315;氫俊锛屼竴鍒?#28598;勭悊鍧囧湪浜?#37817;?#37832;哄唴瀹屾垚銆?/p>

4.涓?#37722;孷LAN?#26879;鐨?#38315;氫俊

鎺?#28051;嬫潵鏄?#26473;?#28051;璁?#37928;勬牳蹇冨唴瀹?#38171;屼笉鍚孷LAN?#26879;鐨?#38315;氫俊銆?#29825;╂垜浠潵鑰?#38095;戜竴涓?#29825;$畻鏈篈涓?#29825;$畻鏈篊涔嬮棿閫氫俊鏃?#37928;?#37807;呭喌銆?/p>

璁$畻鏈篈浠?#38315;氫俊鐩爣鐨処P鍦板潃(192.168.2.1)寰楀嚭C涓?#37832;?#37832;?#28051;?#28766;?#27996;?#37722;屼竴涓?#32515;戞銆?#37733;?#23005;?#28028;氬悜璁?#28729;?#37928;勯粯璁?#32515;?#37711;?DefaultGateway锛孏W)杞?#37721;戞暟鎹?#29999;?#37510;傚湪鍙?#38315;佹暟鎹?#29999;?#28052;嬪墠锛岄渶瑕?#37711;堢敤ARP鑾?#37721;?#29882;敱鍣?#37928;凪AC鍦板潃銆?/p>

寰?#37714;?#29882;敱鍣?#37928;凪AC鍦板潃R鍚?#38171;?#37818;?#28051;嬫潵灏?#37828;?#37816;?#37733;?#28051;?#37813;绀?#37928;?#23005;?#26976;?#37721;?#38315;佸線C鍘?#37928;勬暟鎹?#29999;?#37510;傗憼鐨勬暟鎹?#29999;?#28051;?#38171;?#37929;爣MAC鍦板潃鏄?#29882;敱鍣?#37928;?#37734;板潃R銆?#28003;嗗唴鍚?#37928;?#37929;爣IP鍦板潃浠?#37828;?#37832;缁?#29781;?#38315;氫俊鐨勫?#30789;薄C鐨?#37734;板潃銆?#26473;?#28051;閮?#37714;?#37928;勫唴瀹?#38171;屾秹鍙?#37714;?#28766;鍩?#32515;戝唴缁?#26473;?#29882;敱鍣?#26462;?#37721;戞椂鐨?#38315;氫俊姝?#26976;?#38171;?#37832;?#37832;轰?#27692;啀璇?#32513;?#29785;?#29831;?#37722;?#37510;?/p>

浜?#37817;?#37832;哄湪绔?#37721;?涓?#37824;跺埌?#25020;鐨勬暟鎹?#29999;?#37722;?#38171;屾绱AC鍦板潃鍒?#29723;?#28051;?#28051;庣鍙?鍚屽睘涓涓猇LAN鐨勮〃椤?#37510;傜敱浜?#23033;囪?#27702;摼璺?#28028;氳?#28229;浣?#28766;?#27996;?#37813;鏈?#37928;刅LAN锛?#37733;?#23005;?#26473;?#37827;?#27996;?#37817;?#37832;?#37928;勭鍙?涔?#28766;?#27996;庤鍙傜収瀵硅薄銆?#26473;欐牱浜?#37817;?#37832;?#28751;辩煡閬撳線MAC鍦板潃R鍙?#38315;佹暟鎹?#29999;?#38171;岄渶瑕?#32513;?#26473;囩鍙?杞?#37721;戙?/p>

浠庣鍙?鍙?#38315;佹暟鎹?#29999;?#37827;?#38171;岀敱浜?#28729;?#37828;?#23033;囪?#27702;摼鎺?#38171;?#37733;?#23005;?#28028;氳闄?#37716;犱笂VLAN璇?#37714;俊?#20229;銆傜敱浜?#37720;?#37711;堟槸?#28533;?#22172;绾㈣壊VLAN鐨勬暟鎹?#29999;?#38171;?#37733;?#23005;?#28641;?#37733;?#28051;?#37430;?#37813;绀?#38171;屼細琚?#37716;犱笂绾㈣壊VLAN鐨?#29831;?#37714;俊?#20229;鍚?#26473;?#37711;?#23033;囪?#27702;摼璺?#37510;?#29882;敱鍣?#37824;跺埌鈶?#37928;勬暟鎹?#29999;?#37722;?#38171;?#32429;?#29825;?#37711;禫LAN璇?#37714;俊?#20229;锛岀敱浜?#28729;?#37828;?#28766;?#27996;庣孩?#22730;VLAN鐨勬暟鎹?#29999;?#38171;?#37733;?#23005;?#27996;ょ敱璐熻矗绾㈣壊VLAN鐨勫瓙鎺?#37721;?#37818;?#37824;?#37510;?/p>

鎺ョ潃锛屾?#35268;嵁璺敱鍣?#37712;?#38318;?#37928;?#29882;敱琛?#38171;?#37714;?#37826;?#29831;?#37722;戝摢閲屼腑缁?#37510;?/p>

?#25969;浜?#37929;爣缃戠粶192.168.2.0/24鏄?#38019;濊壊VLAN锛?#38171;屼笖璇?#32515;戠粶閫?#26473;?#28699;?#37818;?#37721;?#28051;?#29882;敱鍣?#37929;?#26473;?#38171;?#37733;?#23005;?#37721;?#29781;?#28000;庤?#29115;矗钃濊壊VLAN鐨勫瓙鎺?#37721;?#26462;?#37721;戝氨鍙?#28000;?#27996;?#37510;?#26473;?#37827;?#38171;屾暟鎹?#29999;?#37928;?#37929;爣MAC鍦板潃琚?#37824;?#37712;欐垚璁$畻鏈篊鐨?#37929;爣鍦板潃;骞?#28051;旂敱浜庨渶瑕?#32513;?#26473;囨?#22250;?#27702;摼璺?#26462;?#37721;?#38171;?#37733;?#23005;?#29722;?#38340;?#37716;?#27996;?#28766;?#27996;庤?#28618;壊VLAN鐨?#29831;?#37714;俊?#20229;銆?#26473;?#28751;?#37828;?#37733;?#28051;憿鐨勬暟鎹?#29999;?#37510;?/p>

浜?#37817;?#37832;烘?#36346;埌?#25023;鐨勬暟鎹?#29999;?#37722;?#38171;屾?#35268;?#29968;LAN?#29219;璇嗕俊?#20229;浠嶮AC鍦板潃鍒?#29723;?#28051;?#22955;绱?#28766;?#27996;庤?#28618;壊VLAN鐨勮〃椤?#37510;傜敱浜?#38315;氫俊鐩爣——璁$畻鏈篊杩?#37818;ュ湪绔?#37721;?涓?#37510;?#28051;?#32468;?#37721;??#36127;?#27352;閫?#37928;?#29825;块棶?#25724;鎺?#38171;?#37733;?#23005;?#27996;?#37817;?#37832;轰?#27692;皢?#26271;鎹?#29999;?#37720;?#38340;LAN璇?#37714;俊?#20229;鍚??#26271;鎹?#29999;?#37430;?杞?#37721;戠粰绔?#37721;?锛?#37832;缁?#29825;$畻鏈篊鎵嶈兘?#22426;鍔?#37734;版?#36346;埌杩?#28051;暟鎹?#29999;?#37510;?/p>

杩?#29723;孷LAN?#26879;閫氫俊鏃?#38171;?#37719;?#28003;?#38315;氫俊鍙屾柟閮?#26473;?#37818;ュ湪鍚屼竴鍙?#27996;?#37817;?#37832;?#28051;?#38171;屼篃蹇呴?#33636;粡杩?#38171;?ldquo;鍙?#38315;佹柟——浜?#37817;?#37832;?mdash;—璺敱鍣?mdash;—浜?#37817;?#37832;?mdash;—鎺?#37824;?#37826;?rdquo;杩欐牱涓涓?#23092;佺▼銆?/p>

涓?#28766;?#27996;?#37817;?#37832;?/strong>

1.浣跨敤璺敱鍣?#26473;?#29723;孷LAN?#26879;璺敱鏃?#37928;勯棶棰?/p>

鐜板湪锛屾垜浠煡閬?#37721;?#29781;佽兘鎻?#28186;沄LAN?#26879;璺敱锛屽氨?#20824;澶?#28003;?#37714;?#28766;?#28051;?#37722;孷LAN鐨?#29825;$畻鏈?#27996;?#37929;?#38315;氫俊銆?#28003;?#37828;?#38171;屽鏋?#28003;跨敤璺敱鍣?#26473;?#29723;孷LAN?#26879;璺敱鐨?#29831;?#38171;岄?#24533;潃VLAN涔嬮?#23384;祦閲?#37928;勪笉鏂?#28583;?#37716;?#38171;屽緢鍙兘瀵艰嚧璺敱鍣ㄦ垚?#36127;鏁?#28051;?#32515;戠粶鐨勭摱棰?#37510;?/p>

浜?#37817;?#37832;?#28003;跨敤琚?#32457;颁负ASIC(ApplicationSpecified Integrated Circuit)鐨勪?#25782;敤纭?#28000;惰姱鐗?#28598;勭悊?#26271;鎹?#29999;?#37928;?#27996;?#37817;?#37823;?#28003;?#38171;屽湪寰?#28598;?#37832;?#37736;?#28051;?#38318;借兘瀹?#37916;?#28000;?#32514;嗙嚎閫熷害(Wired Speed)浜?#37817;?#37510;?#38000;?#29882;敱鍣?#38171;?#37714;?#37737;?#37832;?#28051;?#37828;?#37737;?#27996;庤蒋浠跺?#21229;悊鐨?#37510;?#37719;?#28003;?#28000;?#32514;嗙嚎閫熷害鎺?#37824;跺?#29256;暟鎹寘锛屼篃?#26852;?#30838;?#28266;涓?#38340;?#38315;?#37928;勬潯浠?#28051;?#26462;?#37721;戝嚭鍘?#38171;?#37733;?#23005;?#28028;氭垚?#36127;閫熷害?#25713;棰?#37510;傚氨VLAN?#26879;璺敱鑰岃█锛屾祦閲?#28028;氶泦涓?#37714;?#29882;敱鍣ㄥ拰浜?#37817;?#37832;?#27996;掕仈鐨勬?#22250;?#27702;摼璺?#38318;?#37714;?#38171;?#26473;?#28051;閮?#37714;?#28751;?#37711;?#37911;?#37714;?#28729;?#37828;撴垚?#36127;閫熷害?#25713;棰?#37510;?#39582;?#28051;?#28000;?#32429;?#28000;?#28051;婄湅锛岀敱浜庨渶瑕?#37714;?#37714;?#29825;?#32515;?#29882;敱鍣ㄥ拰浜?#37817;?#37832;?#38171;屽湪涓浜涚?#27946;?#23544;嫮灏?#37928;?#37916;?#28583;?#38322;?#37721;兘杩?#29825;?#32515;?#37928;?#37734;?#37813;閮芥垚?#26870;棰?#37510;?/p>

2.涓?#28766;?#27996;?#37817;?#37832;?Layer 3 Switch)

?#36127;浜?#29785;?#37712;?#28051;?#26473;伴棶棰?#38171;屼笁灞?#27996;?#37817;?#37832;哄簲杩?#38000;岀敓銆?#28051;?#28766;?#27996;?#37817;?#37832;?#38171;?#37832;?#29840;?#28051;?#28751;?#37828;?ldquo;甯?#37832;?#29882;敱鍔熻兘鐨?浜屽眰)浜?#37817;?#37832;?rdquo;銆?#29882;敱灞?#27996;嶰SI鍙傜収妯?#37736;?#28051;?#32471;?#28051;?#28766;?#32515;戠粶灞?#37928;?#37716;熻兘锛?#37733;?#23005;?#29999;?#37832;夌涓?#28766;?#29882;敱鍔熻兘鐨?#27996;?#37817;?#37832;?#37813;嶈绉颁负“涓?#28766;?#27996;?#37817;?#37832;?rdquo;銆?/p>

鍏?#27996;?#28051;?#28766;?#27996;?#37817;?#37832;?#37928;勫唴閮?#32513;?#37835;?#38171;?#37721;?#28000;?#37721;傜収涓嬮潰鐨勭畝鍥?#37510;?/p>

?#28266;涓鍙?#37832;?#28003;撳唴锛?#37714;?#37714;?#29825;?#32515;?#27996;?#27996;?#37817;?#37832;烘ā鍧楀拰璺敱鍣?#22959;?#37735;?鑰屽唴缃?#37928;?#29882;敱妯?#37735;?#28051;?#27996;?#37817;?#22959;?#37735;?#37929;?#37722;?#38171;屼?#36328;敤ASIC纭?#28000;跺?#21229;悊璺敱銆?#37733;?#23005;?#38171;屼笌浼犵粺鐨?#29882;敱鍣?#37929;告瘮锛?#37721;?#28000;?#28729;?#37916;伴珮閫?#29882;敱銆?#39582;?#28051;?#38171;?#29882;敱涓?#27996;?#37817;?#22959;?#37735;?#37828;?#23033;囪?#27702;摼鎺?#37928;?#38171;岀敱浜?#37828;?#37712;?#38318;?#26473;?#37818;?#38171;?#37721;?#28000;?#32429;?#28103;?#37929;稿綋澶?#37928;?#29999;?#28729;?#37510;?/p>

鈼?浣跨敤涓?#28766;?#27996;?#37817;?#37832;?#26473;?#29723;孷LAN?#26879;璺敱(VLAN鍐?#38315;氫俊)

?#28266;涓?#28766;?#27996;?#37817;?#37832;哄唴閮ㄦ暟鎹?#32460;剁珶鏄?#37804;庢牱浼?#37822;?#37928;勫憿?鍩?#37832;?#28051;?#38171;?#28729;冨拰浣跨敤姹囪?#27702;摼璺?#26473;?#37818;?#29882;敱鍣?#28051;?#27996;?#37817;?#37832;烘椂鐨?#37807;呭舰鐩?#37722;?#37510;?/p>

?#20131;璁?#37832;夊涓嬪浘鎵绀?#37928;?鍙?#29825;$畻鏈?#28051;?#28051;?#28766;?#27996;?#37817;?#37832;?#27996;掕仈銆傚綋浣跨敤璺敱鍣?#26473;?#37818;?#37827;?#38171;屼竴鑸渶瑕佸湪LAN鎺?#37721;?#28051;?#29825;?#32515;?#28725;瑰簲鍚刅LAN鐨勫瓙鎺?#37721;?鑰屼笁灞?#27996;?#37817;?#37832;?#37714;?#37828;湪鍐?#38318;?#37922;熸垚“VLAN鎺?#37721;?rdquo;(VLAN Interface)銆俈LAN鎺?#37721;?#38171;屾槸?#25956;浜?#37722;刅LAN鏀跺?#25118;暟鎹?#37928;?#37818;?#37721;?#37510;??#25950;锛氬湪Cisco鐨凜atalyst绯?#37714;?#27996;?#37817;?#37832;?#28051;?#38171;孷LAN Interface琚?#32457;颁负SVI——Switched Virtual Interface)

?#36127;浜?#28051;?#28003;跨敤璺敱鍣?#26473;?#29723;孷LAN?#26879;璺敱瀵规瘮锛?#29825;╂垜浠?#37722;屾牱?#28533;鑰?#38095;戜竴涓?#29825;$畻鏈篈涓?#29825;$畻鏈築涔嬮棿閫氫俊鏃?#37928;?#37807;呭喌銆傞鍏堟槸鐩爣鍦板潃?#36127;B鐨勬暟鎹?#29999;?#29722;?#37721;戝埌浜?#37817;?#37832;?閫?#26473;囨绱?#37722;屼竴VLAN鐨凪AC鍦板潃鍒?#29723;?#37721;?#37916;?#29825;$畻鏈築杩炲湪浜?#37817;?#37832;?#37928;勭鍙?涓?鍥?#23005;?#28751;嗘暟鎹?#29999;?#26462;?#37721;戠粰绔?#37721;?銆?/p>

鈼?浣跨敤涓?#28766;?#27996;?#37817;?#37832;?#26473;?#29723;孷LAN?#26879;璺敱(VLAN?#26879;閫氫俊)

鎺?#28051;嬫潵璁?#37807;?#28051;涓?#29825;$畻鏈篈涓?#29825;$畻鏈篊?#26879;閫氫俊鏃?#37928;?#37807;呭舰銆傞?#22557;鐩爣IP鍦板潃锛?#29825;$畻鏈篈鍙?#28000;?#37714;?#37826;?#37713;洪氫俊瀵硅薄涓?#28766;?#27996;?#37722;屼竴涓?#32515;戠粶锛?#37733;?#23005;?#37722;戦粯璁?#32515;?#37711;?#37721;?#38315;佹暟鎹?Frame 1)銆?/p>

浜?#37817;?#37832;洪?#26473;囨绱AC鍦板潃鍒?#29723;?#37722;?#38171;岀?#24533;敱鍐?#38318;?#23033;囪?#27702;摼鎺?#38171;屽皢?#26271;鎹?#29999;?#26462;?#37721;戠粰璺敱妯?#37735;?#37510;傚湪閫?#26473;?#37712;?#38318;?#23033;囪?#27702;摼璺?#37827;?#38171;屾暟鎹?#29999;?#29722;?#38340;?#37716;?#27996;?#28766;?#27996;庣孩?#22730;VLAN鐨刅LAN璇?#37714;俊?#20229;(Frame 2)銆?/p>

璺敱妯?#37735;楀湪鏀跺?#29256;暟鎹?#29999;?#37827;?#38171;?#37711;堢敱?#26271;鎹?#29999;?#38340;?#37716;?#37928;刅LAN璇?#37714;俊?#20229;鍒?#26440;ㄥ嚭瀹冨睘浜庣孩?#22730;VLAN锛屾嵁姝?#37714;?#37826;敱绾㈣壊VLAN鎺?#37721;?#29840;熻矗鎺?#37824;跺苟杩?#29723;?#29882;敱澶勭悊銆?#37733;犱负鐩爣缃戠粶192.168.2.0/24鏄?#37929;?#26473;?#29882;敱鍣?#37928;?#32515;戠粶銆?#28051;?#28725;瑰簲钃濊壊VLAN;鍥?#23005;?#38171;?#37818;?#28051;嬫潵灏?#28028;?#28000;庤?#28618;壊VLAN鎺?#37721;?#32513;忕敱鍐?#38318;?#23033;囪?#27702;摼璺?#26462;?#37721;戝洖浜?#37817;?#22959;?#37735;?#37510;傚湪閫?#26473;囨?#22250;?#27702;摼璺?#37827;?#38171;?#26473;?#23046;℃暟鎹?#29999;?#29722;?#38340;?#37716;犱笂灞?#27996;庤?#28618;壊VLAN鐨?#29831;?#37714;俊?#20229;(Frame 3)銆?/p>

浜?#37817;?#37832;烘?#36346;埌杩?#28051;?#29999;?#37722;?#38171;屾绱?#38019;濊壊VLAN鐨凪AC鍦板潃鍒?#29723;?#38171;?#32429;?#29825;ら渶瑕佸皢瀹?#26462;?#37721;戠粰绔?#37721;?銆傜敱浜庣鍙?鏄?#38315;氬父鐨?#29825;块棶?#25724;鎺?#38171;?#37733;?#23005;?#26462;?#37721;戝墠浼?#37711;?#28751;哣LAN璇?#37714;俊?#20229;鍘?#38340;?Frame 4)銆?#37832;缁?#38171;?#29825;$畻鏈篊?#22426;鍔?#37734;版?#36346;埌浜?#37817;?#37832;?#26462;?#37721;戞潵鐨勬暟鎹?#29999;?#37510;?/p>

鏁?#28003;?#37928;勬?#20346;▼锛屼笌浣跨敤澶?#38318;?#29882;敱鍣?#37827;?#37928;?#37807;呭喌鍗?#37714;?#37929;?#28028;?mdash;—閮介渶瑕?#32513;?#26473;?ldquo;鍙?#38315;佹柟→浜?#37817;?#22959;?#37735;?rarr;璺敱妯?#37735;?rarr;浜?#37817;?#22959;?#37735;?rarr;鎺?#37824;?#37826;?rdquo;銆?/p>

鍔?#38315;烿LAN?#26879;閫氫俊鐨?#37813;嬫

1.?#31078;(Flow)

鏍规嵁鍒版?#36127;姝?#37928;勫涔?#38171;屾垜浠?#23480;茬?#24533;煡閬揤LAN?#26879;璺敱锛屽?#21620;?#33636;粡杩?#28598;?#38318;?#37928;?#29882;敱鍣?#37812;?#37828;?#28051;?#28766;?#27996;?#37817;?#37832;?#37928;勫唴缃?#29882;敱妯?#37735;?#37510;?#28003;?#37828;?#38171;?#37832;?#37827;跺苟涓?#37828;?#37813;鏈?#37928;勬暟鎹?#38318;介渶瑕?#32513;?#26473;?#29882;敱鍣?鎴?#29882;敱妯?#37735;?銆?/p>

渚嬪锛屼?#36328;敤FTP(File Transfer Protocol)浼?#26440;?#28729;?#38322;忎负?#26271;MB浠?#28051;?#37928;?#26440;冨ぇ鐨?#37826;?#28000;舵椂锛岀敱浜嶮TU鐨?#38340;?#37714;?#38171;孖P鍗?#29825;?#28028;氬皢?#26271;鎹?#37714;?#37715;叉垚灏忓潡鍚?#28028;?#26440;?#37510;?#39582;跺湪鎺?#37824;?#37826;?#38322;?#37826;?#32513;?#37722;?#37510;?#26473;?#27996;?#29722;?#37714;?#37715;?#37928;勬暟鎹?#38171;?ldquo;鍙?#38315;?#37928;?#37929;爣”鏄?#28729;?#37711;?#37929;?#37722;?#37928;?#37510;?#37721;?#38315;?#37929;爣鐩?#37722;?#38171;屼篃灏?#37808;?#37723;崇潃鍚屾牱鐨?#37929;爣IP鍦板潃銆?#37929;?#37837;囩鍙?#37721;??#25950;锛?#37911;?#37714;?#23534;?#29835;?#28051;涓?#38171;?#26473;?#38322;屾寚鐨?#37828;疶CP/UDP绔?#37721;?銆傝嚜?#21159;锛屾簮IP鍦板潃銆佹?#24878;鍙?#37721;?#28052;熷簲璇?#37929;?#37722;?#37510;?#26473;欐牱涓杩?#28051;?#37928;勬暟鎹?#23092;佽绉颁负“?#31078;”(Flow)銆?/p>

鍙?#29781;佸皢娴佹渶鍒?#37928;勬暟鎹?#23005;?#32429;?#37734;?#29882;敱浠?#37722;?#38171;?#37722;庣户鐨勬暟鎹悊搴?#28052;?#28028;氳鍚屾牱鍦?#29882;敱銆?/p>

鎹?#23005;?#38171;?#37722;庣户鐨勬暟鎹?#28051;嶅?#23945;渶瑕佽矾?#25969;鍣?#26473;?#29723;?#29882;敱澶勭悊;閫?#26473;囩?#20346;暐鍙?#28598;?#26473;?#29723;?#37928;?#29882;敱鎿?#28003;?#38171;?#37721;?#28000;?#26473;?#28051;姝?#37819;愰珮VLAN?#26879;璺敱鐨?#38315;熷害銆?/p>

2.鍔?#38315;烿LAN?#26879;璺敱鐨?#37832;?#37714;?/p>

鎺?#28051;嬫潵锛?#29825;╂垜浠?#37711;?#28003;?#38000;?#38095;戜竴涓?#29831;?#28641;?#28003;?#28003;跨敤涓?#28766;?#27996;?#37817;?#37832;?#26473;?#29723;岄珮閫烿LAN?#26879;璺敱銆?/p>

棣?#37711;?#38171;屾暣涓祦鐨勭涓鍧楁暟鎹?#38171;?#37907;?#29999;哥敱浜?#37817;?#37832;?#26462;?#37721;?rarr;璺敱鍣?#29882;敱→鍐?#23046;$敱浜?#37817;?#37832;?#26462;?#37721;戝埌鐩爣鎵杩?#32468;?#37721;?#37510;?#26473;?#37827;?#38171;屽皢绗?#28051;鍧楁暟鎹?#29882;敱鐨勭粨鏋?#29825;板綍鍒?#32514;撳瓨閲屼?#28614;瓨涓嬫潵銆傞渶瑕佽?#26495;綍鐨勪俊?#20229;鏈?#38171;?/p>

(1)鐩爣IP鍦板潃

(2)?#31790;IP鍦板潃

(3)鐩爣TCP/UDP绔?#37721;?#37721;?/p>

(4)?#31790;TCP/UDP绔?#37721;?#37721;?/p>

(5)鎺?#37824;剁鍙?#37721;?浜?#37817;?#37832;?

(6)杞?#37721;戠鍙?#37721;?浜?#37817;?#37832;?

(7)杞?#37721;?#37929;爣MAC鍦板潃

绛?#32475;?#37510;?/p>

鍚屼竴涓祦鐨勭浜屽潡浠?#37722;?#37928;勬暟鎹?#37714;?#26440;?#27996;?#37817;?#37832;?#37722;?#38171;?#37929;?#37818;?#38315;?#26473;囨煡璇?#37711;堝墠淇濆?#27194;湪缂撳瓨涓?#37928;勪俊?#20229;鏌ュ嚭“杞?#37721;戠鍙?#37721;?rdquo;鍚?#28751;?#37721;?#28000;?#26462;?#37721;戠粰鐩爣鎵杩?#32468;?#37721;?#27996;?#37510;?/p>

杩欐牱涓?#28533;锛屽氨涓嶉渶瑕佸啀涓娆?#23046;?#32513;忕敱鍐?#38318;?#29882;敱妯?#37735;?#28051;?#32513;?#38171;?#38000;?#28000;?#37713;?#27996;?#37817;?#37832;哄唴閮?#37928;?#32514;撳?#27193;俊?#20229;灏辫冻浠?#37714;?#37826;?#25652;?#29831;?#26462;?#37721;?#37928;勭鍙?#37510;?/p>

杩?#37827;?#38171;?#27996;?#37817;?#37832;轰?#27692;?#35268;暟鎹?#29999;?#26473;?#29723;岀敱璺敱鍣?#28051;?#32513;?#37827;?#37929;?#28028;?#37928;?#28598;勭悊锛屼?#23338;鏀?#37712;橫AC鍦板潃銆両P?#23512;澶?#28051;?#37928;凾TL?#25328;Check Sum鏍¢獙鐮佷俊?#20229;绛?#37510;?/p>

閫?#26473;囧湪浜?#37817;?#37832;?#28051;?#32514;撳瓨璺敱缁?#37835;?#38171;?#28729;?#37916;?#27996;?#28000;?#32514;嗙嚎閫熷害(Wired Speed)鎺?#37824;跺彂閫佹柟浼?#26440;撴潵?#26271;鎹?#37928;勬暟鎹?#37510;?#39582;?#28051;旇兘澶?#37711;?#38315;?#29882;敱銆佽浆鍙戠粰鎺?#37824;?#37826;?#37510;?/p>

?#28214;瑕佹敞鎰?#37928;?#37828;?#38171;?#32491;?#28028;?#37928;?#37716;?#38315;烿LAN?#26879;璺敱鐨?#37813;嬫硶澶氱敱鍚?#37720;傚?#21977;嫭鏈?#37928;勬妧鏈?#37813;瀹?#37916;?#38171;?#39582;?#28051;?#29831;?#37716;熻兘鐨勭О璋?#28052;?#37733;?#37720;傚?#21978;屽紓銆備?#23338;锛屽湪Cisco鐨凜atalyst绯?#37714;?#27996;?#37817;?#37832;?#28051;?#38171;?#26473;?#32457;?#37716;熻兘琚?#32457;颁负“澶氬眰浜?#37817;?rdquo;(Multi Layer Switching)銆?#37721;?#28598;?#38171;?#38340;?#27996;?#28051;?#28766;?#27996;?#37817;?#37832;?#37928;勫唴閮?#29882;敱妯?#37735;?#38171;屽閮?#29882;敱鍣?#28051;?#37928;勬煇浜?#37832;?#37736;?#28052;?#37824;?#37816;?#32491;?#28028;?#37928;勯珮閫烿LAN?#26879;璺敱鏈?#37714;?#37510;?/p>

浼犵粺鍨?#29882;敱鍣?#28699;樺湪鐨勬剰涔?/strong>

1.璺敱鍣?#37928;?#36423;?#29781;佹?/p>

涓?#28766;?#27996;?#37817;?#37832;?#37928;?#28000;?#37837;?#38171;屽湪?#26870;涓?#28052;嬪垵?#28522;甯?#37828;傝吹锛屼絾鏄?#37916;板湪瀹?#28000;?#37928;?#28000;?#37837;煎?#33580;粡涓嬮檷浜?#29825;稿銆?#37929;墠鍥?#28598;?#28051;浜涘粔浠?#37832;?#37736;?#37928;勫敭浠?#38171;屾姌鍚堟垚浜烘?#25117;竵鍚?#28000;呬负涓涓?#28598;?#37711;?#38171;?#38000;屼笖杩樺湪缁?#32513;?#28051;嬮檷涓?#37510;?/p>

鏃㈢劧涓?#28766;?#27996;?#37817;?#37832;鸿兘澶熸彁渚涙瘮浼犵粺鍨?#29882;敱鍣ㄦ洿?#36127;?#29678;閫?#37928;?#29882;敱澶勭悊锛?#38317;?#28052;?#32515;戠粶涓?#26473;?#37832;?#28003;跨敤璺敱鍣?#37928;?#36423;?#29781;?#37722;?

绛旀?#22559;槸锛?ldquo;鏄?rdquo;銆?/p>

浣跨敤璺敱鍣?#37928;?#36423;?#29781;佹?#38171;屼富瑕佽〃鐜板湪浠?#28051;嬪?#29361;釜鏂归潰锛?/p>

(1)?#25956;浜?#28051;嶹AN杩?#37818;?/p>

涓?#28766;?#27996;?#37817;?#37832;?#32513;堢┒鏄?ldquo;浜?#37817;?#37832;?rdquo;銆?#28052;?#28751;?#37828;?#29831;?#38171;岀粷澶?#28598;氭暟鏈?#37736;?#37721;?#38320;?#37832;塋AN(浠?#28598;?#32515;?鎺?#37721;?#37510;傚湪灏戞暟?#29678;绔?#27996;?#37817;?#37832;?#28051;?#28052;?#37832;夌敤浜?#26473;?#37818;AN鐨勪?#33590;鎺?#37721;?#37812;?#37828;疉TM鎺?#37721;?#38171;屼?#21975;湪澶?#28598;氭暟鎯呭喌涓?#38171;?#26473;?#37818;AN杩?#37828;渶瑕佺敤鍒?#29882;敱鍣?#37510;?/p>

(2)淇?#29831;?#32515;戠粶瀹?#37711;?/p>

?#28266;涓?#28766;?#27996;?#37817;?#37832;?#28051;?#38171;?#38315;?#26473;囨暟鎹寘杩囨护涔熻兘纭?#28103;濅竴瀹氱?#23338;害鐨?#32515;戠粶瀹?#37711;?#37510;?#28003;?#37828;?#28003;跨敤璺敱鍣?#37813;鎻?#28186;?#37928;?#37722;勭缃戠粶瀹?#37711;?#37716;熻兘锛岀敤鎴?#37721;?#28000;?#37835;勫?#28888;洿?#36127;瀹?#37711;?#37721;?#38344;?#37928;?#32515;戠粶銆?/p>

璺敱鍣?#37819;?#28186;?#37928;?#32515;戠粶瀹?#37711;?#37716;熻兘涓?#38171;?#38340;?#27996;?#37832;鍩?#37832;?#37928;勬暟鎹寘杩囨护鍔熻兘澶?#38171;?#26473;樿兘鍩?#27996;嶪PSec鏋勫缓VPN(VirtualPrivate Network)銆?#37714;╃敤RADIUS杩?#29723;岀敤鎴?#29825;?#29831;?#32475;?#32475;?#37510;?/p>

(3)鏀?#37816;?#38340;CP/IP浠?#28598;栫殑寮?#37835;?#32515;戠粶鏋?#37835;?/p>

灏?#32480;CP/IP宸茬?#24532;垚?#36127;?#32139;?#22688;缃戠粶鍗?#29825;?#37835;?#37835;?#37928;勪?#32472;祦锛屼絾杩?#37832;?#28051;?#28751;?#32515;戠粶鍒╃敤Novell Netware涓?#37928;処PX/SPX鎴朚acintosh涓?#37928;凙ppleTalk绛?#32515;戠粶鍗?#29825;?#37510;?#28051;?#28766;?#27996;?#37817;?#37832;?#28051;?#38171;?#38340;?#27996;?#38318;?#37714;嗛珮绔?#37832;?#37736;嬪鍩?#37832;?#28051;?#26473;?#37721;?#37824;?#37816;乀CP/IP銆?#37733;?#23005;?#38171;屽湪?#28214;瑕?#28003;跨敤闄CP/IP涔嬪鍏?#28000;?#32515;戠粶鍗?#29825;?#37928;?#37916;?#28583;?#28051;?#38171;?#29882;敱鍣?#26473;?#37828;?#36423;?#28051;?#37721;?#28751;?#37928;?#37510;?/p>

?#25950;锛氬湪灏戞暟?#29678;绔?#27996;?#37817;?#37832;?#28051;?#38171;屼篃?#20824;鏀?#37816;?#28051;?#26473;?#29882;敱鍣?#37928;?#37716;熻兘銆備?#23338;?#20400;isco鐨凜atalyst 6500绯?#37714;?#38171;屽氨鍙?#28000;?#38315;?#37815;?#28051;嶹AN杩?#37818;?#37928;?#37818;?#37721;?#22959;?#37735;?杩?#37832;?#37721;?#38315;?#37928;?#37737;?#27996;嶪PSec瀹?#37916;癡PN鐨勬ā鍧?骞?#28051;?#28052;熻兘鏀?#37816;乀CP/IP浠?#28598;栫殑鍏?#28000;?#32515;戠粶鍗?#29825;?#37510;?/p>

2.璺敱鍣ㄥ拰浜?#37817;?#37832;洪厤鍚堟瀯?#32531;LAN鐨?#28729;炰緥

涓嬮潰璁╂垜浠潵?#28229;涓涓?#29882;敱鍣ㄥ拰浜?#37817;?#37832;烘惌閰?#37835;勫缓LAN鐨?#28729;炰緥銆?/p>

鍒╃敤?#28266;鍚勬ゼ灞傞厤缃?#37928;?#27996;屽眰浜?#37817;?#37832;?#28729;?#28052;塚LAN锛?#26473;?#37818;CP/IP瀹?#37812;?#29825;$畻鏈?#37510;?#37722;勬ゼ灞傞棿鐨刅LAN?#26879;閫氫俊锛?#37714;╃敤涓?#28766;?#27996;?#37817;?#37832;?#37928;勯珮閫?#29882;敱鍔?#28000;?#28729;?#37916;?#37510;傚鏋?#32515;戠粶鐜?#28583;?#29781;佹眰?#29678;鍙?#38344;犳?#38171;?#26473;?#37721;?#28000;?#38000;?#38095;戝啑浣欓厤缃?#28051;?#28766;?#27996;?#37817;?#37832;?#37510;?/p>

涓嶹AN鐨?#26473;?#37818;?#38171;?#37714;?#38315;?#26473;?#29999;?#37832;?#37722;勭缃戠粶鎺?#37721;?#37928;?#29882;敱鍣?#26473;?#29723;?#37510;?#39582;?#28051;?#38171;?#38315;?#26473;?#29882;敱鍣?#37928;勬暟鎹寘杩囨护?#25328;VPN绛?#37716;熻兘瀹?#37916;?#32515;戠粶瀹?#37711;?#37510;?#23005;?#28598;?#38171;屼?#36328;敤璺敱鍣?#26473;樿兘鏀?#37816;丯ovell Netware绛塗CP/IP涔嬪?#26667;殑缃戠粶銆?/p>

鍙?#37832;夊湪鍏?#37714;?#37818;屾彙浜?#27996;屽眰銆?#28051;?#28766;?#27996;?#37817;?#37832;?#28000;?#37721;?#28028;犵粺璺敱鍣?#37928;?#37737;?#32429;涓?#38171;?#37813;嶈兘鍋氬埌鐗?#32468;?#37711;剁敤锛屾瀯绛戝?#27946;?#27195;晥鐜?#37510;侀?#27195;?#28000;锋瘮鐨?#32515;戠粶銆?/p>

浣跨敤VLAN璁?#29825;?#28766;鍩?#32515;?/strong>

1.浣跨敤VLAN璁?#29825;?#28766;鍩?#32515;?#37928;?#37911;圭偣

閫?#26473;?#28003;跨敤VLAN鏋勫缓灞鍩?#32515;?#38171;岀敤鎴疯兘澶?#28051;?#37721;?#37911;╃悊?#25724;璺?#37928;?#38340;?#37714;?#38000;岃嚜?#25969;鍦?#37714;?#37715;?#39582;?#37822;?#37737;?#37510;?/p>

鍙?#28598;?#38171;?#38315;?#26473;?#37711;堝墠鎻?#37714;?#37928;?#29882;敱鍣?#28051;?#28051;?#28766;?#27996;?#37817;?#37832;烘彁渚?#37928;刅LAN?#26879;璺敱锛岃兘澶?#38315;傚?#26050;伒娲?#28598;?#37721;?#37928;?#32515;戠粶鏋勬垚銆?/p>

浣?#37828;?#38171;岀敱浜?#37714;╃敤VLAN瀹?#37828;撳?#33392;嚧缃戠粶鏋勬垚澶嶆?#20634;寲锛?#37733;?#23005;?#28052;?#28028;?#38315;犳垚鏁?#28051;?#32515;戠粶鐨勭?#21228;垚闅?#28000;?#37814;?#37819;?#37510;?/p>

鍙?#28000;?#26473;欐牱璇?#38171;屽湪鍒╃敤VLAN鏃?#38171;?#38340;?#27996;?#37832;?ldquo;缃戠粶鏋勬垚?#20242;娲?#28598;?#37721;?rdquo;杩?#28051;?#28028;樼偣澶?#38171;?#26473;樻惌閰嶇潃“缃戠粶鏋勬垚澶嶆?#20634;寲”杩?#28051;?#32514;虹偣銆?/p>

涓嬮潰锛屽氨璁╂垜浠潵?#28229;?#28229;鍏?#28003;?#37928;?#28729;炰緥銆?/p>

2.涓?#28003;跨敤VLAN鐨?#28766;鍩?#32515;戜腑缃戠粶鏋勬垚鐨勬敼鍙?/p>

?#20131;璁?#37832;夊鍥?#37813;绀?#37928;勭敱1鍙?#29882;敱鍣?#37510;?鍙?#27996;?#37817;?#37832;?#37835;勬垚鐨?ldquo;涓?#28003;跨敤VLAN鏋勫缓”鐨?#32515;戠粶銆?/p>

鍥?#28051;?#37928;?#29882;敱鍣?#38171;屽甫鏈?涓狶AN鎺?#37721;?#37510;傚乏渚?#37928;?#32515;戠粶鏄?92.168.1.0/24锛?#37721;?#28186;?#37828;?92.168.2.0/24銆?/p>

鐜板湪濡?#37835;?#37807;冲皢192.168.1.0/24杩?#28051;?#32515;戠粶涓?#37928;?#29825;$畻鏈篈杞?#32457;?#37714;?92.168.2.0/24涓?#37720;?#38171;屽氨?#28214;瑕佹敼鍙?#37911;╃悊杩?#37818;?#37510;佸皢A鎺?#37714;?#37721;?#28186;?#37928;?#27996;?#37817;?#37832;?#28051;?#37510;?/p>

骞?#28051;?#38171;屽綋?#28214;瑕佹?#26495;涓涓?#37734;板潃?#36127;192.168.3.0/24鐨?#32515;戠?#28356;椂锛?#26473;?#29781;佸湪璺敱鍣?#28051;婂啀鍗犵敤涓涓狶AN鎺?#37721;?#39582;舵坊缃?#28051;鍙?#27996;?#37817;?#37832;?#37510;?#38000;岀敱浜?#26473;?#37721;?#29882;敱鍣?#28051;?#37721;?#29999;?#27996;?涓狶AN鎺?#37721;?#38171;?#37733;?#23005;や负浜?#37826;板缃戠粶杩?#36423;呴』灏?#29882;敱鍣?#37719;囩骇?#36127;甯?#37832;?涓?#28000;?#28051;奓AN鎺?#37721;?#37928;?#27996;?#37725;併?/p>

3.浣跨敤VLAN鐨?#28766;鍩?#32515;戜腑缃戠粶鏋勬垚鐨勬敼鍙?/p>

鎺?#28051;嬫潵鍐嶅亣璁?#37832;?#28051;涓敱1鍙?#29882;敱鍣?#37510;?鍙?#27996;?#37817;?#37832;?#37835;勬垚鐨?ldquo;浣跨敤VLAN”鐨?#28766;鍩?#32515;戙?#27996;?#37817;?#37832;?#28051;?#27996;?#37817;?#37832;?#37510;?#27996;?#37817;?#37832;?#28051;?#29882;敱鍣?#28052;嬮棿鍧囦负姹囪?#27702;摼璺?骞?#28051;斿亣璁?92.168.1.0/24瀵瑰簲绾㈣壊VLAN銆?92.168.2.0/24瀵瑰簲钃濊壊VLAN銆?/p>

?#28214;瑕佸皢杩?#37818;ュ湪浜?#37817;?#37832;?涓?92.168.1.0/24杩?#28051;?#32515;戞鐨?#29825;$畻鏈篈杞?#28766;?92.168.2.0/24鏃?#38171;屾棤?#28214;?#27967;鏀?#37911;╃悊甯?#32510;?#37510;?#37721;?#29781;佸湪浜?#37817;?#37832;?#28051;?#37922;熸垚钃濊壊VLAN锛岀?#36346;悗灏?#29825;$畻鏈篈鎵杩?#37928;勭鍙?鍔?#37711;?#37714;拌?#28618;壊VLAN涓?#37720;?#38171;屼娇瀹冩垚?#36127;璁块棶?#25724;鎺?#37719;?#37721;?#37510;?/p>

鐒跺悗锛屾?#35268;嵁?#28214;瑕佽瀹?#29825;$畻鏈篈鐨処P鍦板潃銆侀粯璁?#32515;?#37711;崇?#22793;俊?#20229;灏?#37721;?#28000;?#27996;?#37510;傚鏋淚P鍦板潃鐩?#37711;?#37928;?#29825;?#28729;?#37828;敱DHCP鑾?#37721;栫殑锛?#38317;?#28052;堝湪瀹?#37812;?#37832;?#37826;归潰?#26852;?#28214;杩?#29723;?#28000;?#28003;?#29825;?#28729;氫慨鏀?#38171;屽氨鍙?#28000;ュ湪涓?#37722;?#32515;戞闂寸Щ鍔?#37510;?/p>

鍒╃敤VLAN鍚?#38171;屾垜浠?#37721;?#28000;ュ湪鍏?#27996;?#37824;?#37716;?#28000;?#28003;?#37911;╃悊甯?#32510;?#37928;勫墠鎻?#28051;?#38171;岃嚜?#25969;杩?#29723;?#32515;戠粶鐨?#38315;?#26440;?#29825;?#29825;?#37510;傚鏋?#37813;澶?#37928;勫伐浣?#37916;?#28583;?#37805;版?#20276;渶瑕?#32513;?#29999;?#37824;?#37721;?#32515;戠粶甯冨眬锛?#38317;?#28052;?#37714;╃敤VLAN鐨勪?#27194;娍灏遍潪甯?#37828;?#37828;?#27996;?#37510;?/p>

骞?#28051;?#38171;屽綋?#28214;瑕佹?#26495;涓涓?#37734;板潃?#36127;192.168.3.0/24鐨?#32515;戞鏃?#38171;屼篃鍙渶瑕佸湪浜?#37817;?#37832;?#28051;?#37826;板缓涓涓?#28725;瑰簲192.168.3.0/24鐨刅LAN锛?#39582;跺皢鎵?#28214;鐨勭鍙?#37716;?#37711;?#28729;?#37928;?#29825;块棶?#25724;璺?#28751;?#37721;?#28000;?#27996;?#37510;?/p>

濡?#37835;?#32515;戠粶鐜?#28583;?#28051;?#26473;橀渶瑕?#37714;╃敤澶?#38318;?#29882;敱鍣?#38171;?#37714;?#37721;?#29781;佸湪璺敱鍣?#37928;勬?#22250;?#27697;鍙?#28051;?#37826;板涓涓?#28699;?#37818;?#37721;?#37928;?#29825;?#28729;氬氨鍙?#28000;?#28729;屾垚鍏?#38318;?#37823;?#28003;?#38171;?#38000;屼笉?#28214;瑕佹秷鑰楁洿澶?#37928;?#37911;╃悊鎺?#37721;?LAN鎺?#37721;?銆?#29781;?#28003;跨敤鐨?#37828;?#28051;?#28766;?#27996;?#37817;?#37832;哄唴閮?#37928;?#29882;敱妯?#37735;?#38171;?#37714;?#37721;渶瑕佹柊璁?#28051;涓猇LAN鎺?#37721;?#37719;?#37721;?#37510;?/p>

缃戠粶鐜?#28583;?#37928;勬垚闀?#38171;屽線寰鏄?#38341;?#28000;?#26864;勬祴鐨?#38171;屽緢鍙兘缁?#29999;?#28028;氬嚭鐜伴渶瑕?#37714;?#37715;?#37916;?#37832;?#32515;戠?#28356;垨鏄?#28583;?#37716;?#37826;?#32515;戠粶鐨?#37807;呭喌銆?#38000;?#37711;?#37714;?#23090;荤敤VLAN鍚?#38171;屽氨鍙?#28000;?#26462;?#37828;?#37734;?#29785;?#37712;?#26473;?#27996;涢棶棰?#37510;?/p>

4.鍒╃敤VLAN鑰屽?#33392;嚧鐨?#32515;戠粶缁?#37835;?#28598;嶆?#20634;寲

?#27367;鐒跺埄?#25956;VLAN鍙?#28000;ョ伒娲?#37734;版瀯?#32531;缃戠粶锛屼絾鏄?#37722;屾椂锛?#28729;?#28052;?#29999;︽潵浜?#32515;戠粶缁?#37835;?#28598;嶆?#20634;?#26667;殑?#26870;棰?#37510;?/p>

鐗?#37714;?#37828;敱浜庢暟鎹?#23092;佺旱妯?#27996;?#38335;?#38171;屼竴鏃?#37721;戠?#29112;晠闅滄椂锛屽噯纭?#28729;氫綅骞?#37818;?#38340;ゆ晠闅?#28028;氭瘮杈?#37733;伴毦銆?/p>

?#36127;浜?#28186;?#27996;庣悊瑙f暟鎹祦鍚?#37928;?#28598;嶆?#20634;寲锛屽亣璁?#37832;?#28051;嬪浘鎵绀?#37928;?#32515;戠粶銆?#29825;$畻鏈篈鍚?#29825;$畻鏈篊鍙?#38315;佹暟鎹?#37827;?#38171;屾暟鎹祦鐨勬暣浣撹蛋鍚戝涓?#38171;?/p>

璁$畻鏈篈→浜?#37817;?#37832;?→璺敱鍣?rarr;浜?#37817;?#37832;?→浜?#37817;?#37832;?→璁$畻鏈篊

棣?#37711;?#29825;$畻鏈篈鍚?#27996;?#37817;?#37832;?閫佸嚭?#26271;鎹??#25020;)锛?#37711;跺悗?#26271;鎹?#29722;?#26462;?#37721;戠粰璺敱鍣?鈶?杩?#29723;孷LAN?#26879;璺敱銆?#29882;敱鍚?#37928;勬暟鎹?#38171;屽啀浠?#23033;囪?#27702;摼璺?#26473;?#37733;?#27996;?#37817;?#37832;?(?#25023;)銆傜敱浜?#38315;氫俊鐩爣璁$畻鏈篊骞?#28051;?#37929;?#26473;炲湪浜?#37817;?#37832;?涓?#38171;?#37733;?#23005;?#26473;橀渶瑕?#32513;?#26473;囨?#22250;?#27702;摼璺?#26462;?#37721;戝埌浜?#37817;?#37832;?(鈶?銆傚湪浜?#37817;?#37832;?涓?#38171;屾暟鎹?#37832;缁堣杞?#37721;戝埌C鎵杩?#37928;勭鍙?涓?#38171;?#26473;?#37813;?#28729;屾垚鏁?#28051;?#23092;佺▼(鈶?銆?/p>

?#28266;杩?#28051;?#28186;嬪瓙涓?#38171;?#28000;呯敱2鍙?#27996;?#37817;?#37832;?#37835;勬垚缃戠粶锛?#37711;舵暟鎹?#23092;佸?#33580;?#24531;姝?#28598;嶆潅锛屽鏋?#37835;勫?#28888;í璺?#28598;?#37721;?#27996;?#37817;?#37832;?#37928;刅LAN鐨?#29831;?#38171;屾瘡涓暟鎹祦鐨勬祦鍚?#37828;剧劧浼氭洿鍔犻毦浠?#37814;?#37819;?#37510;?/p>

5. 缃戠粶鐨?#38315;?#26440;戠粨鏋勪笌鐗╃悊缁?#37835;?/p>

?#36127;浜嗗?#29808;簲鏃ユ笎澶嶆?#20634;?#26667;殑?#26271;鎹祦锛岀?#24714;鍛橀渶瑕?#28000;?ldquo;閫?#26440;戠粨鏋?rdquo;涓?ldquo;鐗╃悊缁?#37835;?rdquo;涓?#37826;归潰鍏?#37813;?#38171;屾妸鎻?#28610;?#32515;戠粶鐨?#37916;扮姸銆?/p>

鐗╃悊缁?#37835;?#38171;屾寚鐨?#37828;?#28000;?#37911;╃悊灞傚拰?#26271;鎹摼璺?#28766;?#29785;傚療鍒?#37928;?#32515;戠粶鐨?#37916;扮姸锛?#29723;?#32448;?#27996;?#32515;戠粶鐨?#37911;╃悊甯?#32510;垮舰鎬佸拰VLAN鐨?#29825;?#28729;?#32475;?#32475;?#37510;?/p>

鑰?#38315;?#26440;戠粨鏋?#38171;?#37714;?#29723;?#32448;?#28000;?#32515;戠粶灞?#28000;?#28051;?#37928;?#28766;傞潰瑙傚療鍒?#37928;?#32515;戠粶缁?#37835;?#37510;?#28051;嬮潰?#22428;浠?#28751;?#29831;曠潃浠?#29882;敱鍣ㄤ负涓?#36423;冨垎鏋?#28051;涓狪P缃戠粶鐨?#38315;?#26440;戠粨鏋?#37510;?/p>

杩?#37828;?#37711;堝墠鐨?#38317;?#28051;?#28186;嬪瓙锛屾?#24533;粯浜?#29999;?#32510;垮舰鎬佸拰VLAN璁?#28729;?#37928;?ldquo;鐗╃悊缁?#37835;?rdquo;濡?#28051;嬪浘鎵绀?#37510;?/p>

鍒?#37835;?#26473;?#28051;?#37911;╃悊缁?#37835;?#39582;?#26462;?#37817;㈡垚浠?#29882;敱鍣ㄤ负涓?#36423;?#37928;?#38315;?#26440;戠粨鏋?#37722;?#38171;屼?#27692;緱鍒板涓?#37928;?#38315;?#26440;戠粨鏋?#37733;?#37510;傚綋?#22428;浠渶瑕佽繘琛?#29882;敱鎴?#37828;暟鎹寘杩囨护鐨?#29825;?#28729;氭椂锛?#38318;?#36423;呴?#35826;湪閫?#26440;戠粨鏋?#37928;?#37737;?#32429;涓?#26473;?#29723;?#37510;?/p>

鎶?#37819;?#26473;?#28051;?#32457;?#32515;戠粶缁?#37835;?#37733;?#37928;勫尯鍒?#37828;?#37719;?#37714;?#38322;?#29781;?#37928;?#38171;?#37911;?#37714;?#37828;湪VLAN?#25328;涓?#28766;?#27996;?#37817;?#37832;?#28598;?#29723;?#37711;?#38316;?#37928;?#37916;?#28000;?#28028;?#28051;氱骇缃戠粶?#32139;涓?#37510;?/p>]]>?#33931;浠跺紑鍙?/category>http://www.ojizl5.fun/software/771.html#commenthttp://www.ojizl5.fun/http://www.ojizl5.fun/feed.asp?cmt=771http://www.ojizl5.fun/cmd.asp?act=tb&id=771&key=c0a9ef08SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37719;?#38171;氬?#21975;搧绫?#37737;?#37832;?#22959;?#37735;?#37928;?#37820;缓a@b.com (楦″晞绫?http://www.ojizl5.fun/software/770.htmlWed, 07 Mar 2018 08:41:55 +0800http://www.ojizl5.fun/software/770.html      ?#22688;?#28528;?#22428;浠?#28729;屾垚浜?#28051;庡?#21975;搧绫?#37714;?#37929;?#37711;?#37928;勪?#27692;姟閫?#26440;?#38171;?#37818;?#28051;嬫潵?#22428;浠紑濮嬪仛鍏?#28003;撳?#21975;搧閮?#37714;?#37510;?/p>

銆銆1. ?#26271;鎹?#25652;撳缓琛?#39582;?#37828;?#28751;凪odel

銆銆棣?#37711;堟垜浠湪?#26271;鎹?#25652;?#28051;?#37826;板缓涓寮?#29723;?#38171;岀?#36346;悗浣跨敤閫?#37722;戝伐绋嬪皢琛?#37828;?#28751;勬垚Model绫?#38171;?#29723;?#28641;?#28051;?#38171;?/p>

SQL浠?#37934;?/div>
  1. /*=============================*/    
  2. /* Table: 鍟嗗?#20349;〃缁?#37835;?nbsp;           */    
  3. /*=============================*/    
  4. create table product    
  5. (    
  6.    /* 鍟嗗搧缂?#37721;??#22172;鍔?#28583;為暱 */    
  7.    id                  int primary key not null auto_increment,    
  8.    /* 鍟嗗搧鍚?#32457;?nbsp;*/    
  9.    name                varchar(20),    
  10.    /* 鍟嗗搧浠?#37837;?nbsp;*/    
  11.    price               decimal(8,2),    
  12.    /* 鍟嗗搧鍥?#37911;?nbsp;*/    
  13.    pic                 varchar(200),    
  14.    /* 鍟嗗搧绠鍗?#28000;?#32513;?nbsp;*/    
  15.    remark              longtext,    
  16.    /* 鍟嗗?#20349;缁?#28000;?#32513;?nbsp;*/    
  17.    xremark             longtext,    
  18.    /* 鍟嗗搧鐢?#27996;?#37827;?#37832;?nbsp;*/    
  19.    date                timestamp default CURRENT_TIMESTAMP,    
  20.    /* 鏄?#37722;︿负鎺?#38013;愬?#21975;搧,鎺?#38013;愬?#21975;?#20345;墠鏈?#37721;兘鏄剧?#21700;湪?#26210;鍩?#26851;?#26916;?nbsp;*/    
  21.    commend             bool,    
  22.    /* 鏄?#37722;︿负鏈?#37825;堝?#21975;搧,鏈?#37825;堝?#21975;?#20345;墠鏈?#37721;兘鏄剧?#21700;湪?#26210;鍩?#26851;?#26916;?nbsp;*/    
  23.    open                bool,    
  24.    /* 鍟嗗?#20345;墍?#28266;鐨?#32491;?#37714;?#32514;?#37721;?/    
  25.    cid                  int,    
  26.    constraint cid_FK foreign key(cid) references category(id)    
  27. );    

銆銆浣跨敤閫?#37722;戝伐绋嬫槧灏勪负Model绫?#28751;?#28051;嶈禈杩?#27996;?#38171;屽墠?#28528;鏈?#37819;?#37714;板浣?#28003;跨敤閫?#37722;戝伐绋?#37922;熸垚Model銆?/p>

銆2. 瀹屾垚鍟嗗搧绫?#37928;凷ervice灞傚拰Action鐨?#37835;?#37835;?/strong>

銆銆2.1 鍟嗗搧绫?#37928;凷ervice灞?#37835;?#37835;?/strong>

銆銆涓庡墠?#28528;category涓?#29297;锛宲roduct涔熷緱鏈?#28051;猻ervice?#28533;鎿?#28003;?#28051;庡?#21975;搧鐩?#37711;?#37928;勪?#27692;姟閫?#26440;?#38171;?#37813;浠ユ垜浠?#23536;?#37712;?#28051;涓狿roductService?#25328;ProductServiceImpl鐨?#37835;?#37835;勫嚭?#28533;锛?#37711;?#28003;撳涓?#38171;?/p>

Java浠?#37934;?/div>
  1. //ProductService鎺?#37721;?#32513;?#37813;緽aseService<Product>    
  2. public interface ProductService extends BaseService<Product> {    
  3.         
  4. }    
  5.     
  6. //ProductServiceImpl瀹?#37916;?#32491;荤户鎵緽aseServiceImpl<Product>锛?#39582;跺疄鐜?#28051;婇潰鐨凱roductService鎺?#37721;?nbsp;   
  7. @Service("productService")    
  8. public class ProductServiceImpl extends BaseServiceImpl<Product> implements ProductService {    
  9.     
  10. }    

銆銆2.2 鍟嗗搧绫?#37928;凙ction鏋?#37835;?/strong>

銆銆棣?#37711;堝緱瀹屽?#21226;竴涓婤aseAction涓?#37711;?#27996;嶴ervice灞?#37928;勬敞瑙?/p>

Java浠?#37934;?/div>
  1. @Controller("baseAction")    
  2. @Scope("prototype")    
  3. public class BaseAction<T> extends ActionSupport implements RequestAware,SessionAware,ApplicationAware,ModelDriven<T> {    
  4.     
  5.     @Resource    
  6.     protected ProductService productService;    
  7.     
  8.         //鍏?#28000;?#28000;?#37934;?#37930;佺暐锛?#26473;?#37828;?#37720;熸潵鐨?#28000;?#37934;?hellip;…      
  9. }  

銆銆鐒跺悗?#22428;浠?#37712;?#28051;涓狿roductAction缁?#37813;?#29831;?#37826;规硶锛?/p>

Java浠?#37934;?/div>
  1. public class ProductAction extends BaseAction<Product> {    
  2.         
  3. }    

銆銆鑷虫锛?#37711;?#27996;庡?#21975;搧鐨?#37722;?#37721;版灦鏋?#28751;?#37737;?#37832;?#37820;缓濂?#27996;?#38171;?#37818;?#28051;嬫潵灏?#37828;?#28729;屽杽閲岄潰鐨?#37711;?#28003;?#37716;熻兘?#25328;涓氬姟閫?#26440;?#27996;?#37510;?/p>

銆銆3. 瀹屾垚?#22688;鍙?#37928;?#37737;?#37832;?#32513;?#37835;?/strong>

銆銆?#22688;鍙?#37928;?#37737;?#37832;?#32513;?#37835;勫拰鍟嗗搧绫?#37928;勪竴?#29297;锛屾垜浠湅涓涓嬪?#33580;粡瀹屾垚鐨勫?#21975;搧绫?#37928;勫墠鍙伴兘鏈?#37725;?#27996;?#37826;?#28000;?#38171;?/p>

SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37719;?#38171;氬?#21975;搧绫?#37737;?#37832;?#22959;?#37735;?#37928;?#37820;缓

銆銆?#22428;浠?#37711;堟?#35268;嵁鍏跺?#21975;搧绫?#37928;勫墠鍙?#37826;?#28000;?#38171;屾嫹璐濅竴浠?#37714;皃roduct鏂?#28000;跺す涓?#38171;岀?#36346;悗?#22428;浠?#37712;嶅仛鐩稿簲鐨勪慨鏀?#37510;?#37711;堟潵鍒?#37835;?#28051;涓嬫?#20346;▼锛氶鍏坕ndex.jsp鍒癮index.jsp鏄剧?#21700;乏渚?#38015;?#37719;?#37837;?#38171;屽綋鐐?#37713;?#32491;?#37714;?#32480;$悊鏃?#38171;?#26473;?#37711;ategory/query.jsp椤甸潰鍙?#28186;?#37828;剧ず鎵鏈夊?#21975;搧绫?#37714;俊?#20229;锛屾?#28357;储?#25328;鍒?#38340;?#37716;熻兘鍧囧湪姝?#26916;甸潰锛屼笉?#28214;瑕佸?#29808;嚭鏂?#37928;勭獥鍙?#38171;屾坊鍔?#23534;瑰嚭save.jsp?#29541;鍙?#38171;屾洿鏂?#23534;瑰嚭update.jsp?#29541;鍙?#37510;傚綋鐐?#37713;诲?#21975;搧绠$悊鐨勬?#36346;?#38171;?#26473;?#37711;roduct/query.jsp椤甸潰鍙?#28186;?#37828;剧ず鎵鏈夊?#21975;?#20343;俊?#20229;锛屾?#28357;储?#25328;鍒?#38340;?#37716;熻兘鍧囧湪姝?#26916;甸潰瀹屾垚锛屾坊鍔犲拰?#27967;鏂?#37714;?#37714;?#23534;瑰嚭save.jsp?#25328;update.jsp銆?#37818;?#28051;嬫潵?#22428;浠?#37814;?#37722;勪釜椤甸潰鐨勬鏋舵惌?#32531;濂?#38171;岀?#36346;悗寰鐩稿簲鐨?#38318;?#37714;嗗~涓滆タ鍗?#37721;?#37510;?/p>

銆銆棣?#37711;堝湪aindex.jsp涓?#23075;?#37716;犲涓?#28000;?#37934;?#38171;?/p>

SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37719;?#38171;氬?#21975;搧绫?#37737;?#37832;?#22959;?#37735;?#37928;?#37820;缓

銆銆鎺?#28051;嬫潵锛屾垜浠?#28729;屾垚query.jsp鐨勬鏋?#38171;?/p>

XML/HTML浠?#37934;?/div>
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>    
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">    
  3. <html>    
  4.   <head>    
  5.     <%@ include file="/public/head.jspf" %>    
  6.     <style type="text/css">    
  7.         body {    
  8.             margin: 1px;    
  9.         }    
  10.         .searchbox {    
  11.           margin: -3;    
  12.         }    
  13.     </style>    
  14.     <script type="text/javascript">    
  15.         $(function(){    
  16.             $('#dg').datagrid({       
  17.                 //url鍦板潃鏀逛负璇锋眰productAction涓?#37928;剄ueryJoinCategory鏂规硶    
  18.                 url:'product_queryJoinCategory.action',    
  19.                 loadMsg:'Loading......',    
  20.                 queryParams:{name:''},//杩?#38322;?#37721;傛暟鏀规垚name锛?#37721;傛暟鍊间负绌?#38171;?#29723;?#32448;烘垜浠?#29781;佹?#21095;ず鎵鏈夊?#21975;搧锛?#37722;?#37721;版槸鏍规嵁鍟嗗搧name灞炴?#37836;?#29831;?#37928;?nbsp;   
  21.                 //width:300,    
  22.                 fitColumns:true,    
  23.                 striped:true,    
  24.                 nowrap:true,    
  25.                 singleSelect:false,    
  26.                 pagination:true,    
  27.                 pageSize:5,    
  28.                 pageList:[5,10,15,20],    
  29.                 idField:'id',//鎸?#28729;歩d?#36127;?#29219;璇嗗?#26945;锛屽湪鍒?#38340;?#38171;屾洿鏂?#37928;勬?#36346;?#37832;夌敤锛屽鏋?#38320;?#32515;?#23005;?#28699;楁锛屽湪?#28821;椤?#37827;?#38171;屾崲椤?#28051;?#28028;氬奖鍝?#38315;?#28051;?#37928;?#26916;?nbsp;   
  30.                     
  31.                 //toolbar瀹?#28052;?#23075;?#37716;?#37510;?#37714;?#38340;?#37510;佹洿鏂版?#22800;挳浠?#37721;?#37820;滅储妗?nbsp;   
  32.                 toolbar: [{    
  33.                     iconCls: 'icon-add',    
  34.                     text:'娣?#37716;犲?#21975;搧',    
  35.                     handler: function(){    
  36.                         //娣?#37716;?#29785;?#37721;?#28000;?#37934;?nbsp;   
  37.                     }    
  38.                  },'-',{    
  39.                     iconCls: 'icon-edit',    
  40.                     text:'?#27967;鏂板?#21975;搧',    
  41.                     handler: function(){    
  42.                                             //娣?#37716;?#29785;?#37721;?#28000;?#37934;?nbsp;   
  43.                     }    
  44.                  },'-',{    
  45.                     iconCls: 'icon-remove',    
  46.                      text:'鍒?#38340;?#37727;嗗搧',    
  47.                     handler: function(){    
  48.                         //娣?#37716;?#29785;?#37721;?#28000;?#37934;?nbsp;                       
  49.                     }    
  50.                 },'-',{ //鏌?#29831;?#37816;夐挳涓?#37828;疞inkButton锛?#28729;?#37832;?#29831;硶锛屼絾鏄?#28052;?#37824;?#37816;佽В鏋怘TML?#29219;绛?nbsp;   
  51.                     text:"<input id='ss' name='serach' />"    
  52.                 }],    
  53.                 rowStyler: function(index,row){    
  54.                     console.info("index" + index + "," + row)    
  55.                     if(index % 2 == 0) {    
  56.                         return 'background-color:#fff;';    
  57.                     } else {    
  58.                         return 'background-color:#c4e1e1;';    
  59.                     }    
  60.                         
  61.                  },    
  62.                 frozenColumns:[[    
  63.                      {field:'checkbox',checkbox:true},    
  64.                     {field:'id',title:'鍟嗗搧缂?#37721;?,width:100}       
  65.                  ]],    
  66.                 columns:[[                         
  67.                     {field:'name',title:'鍟嗗搧鍚?#32457;?,width:100},        
  68.                     {field:'price',title:'鍟嗗搧浠?#37837;?,width:100},    
  69.                     {field:'remark',title:'绠鍗曟弿杩?,width:100},    
  70.                     {field:'xremark',title:'璇?#32513;嗘弿杩?,width:100},    
  71.                     {field:'date',title:'涓?#37835;舵?#22549;棿',width:100},    
  72.                     {field:'commend',title:'鎺?#38013;愬?#21975;搧',width:100,      
  73.                         formatter: function(value,row,index){    
  74.                             if(value) {    
  75.                                 return "<input type='checkbox' checked='checked' disabled='true'";    
  76.                             } else {    
  77.                                 return "<input type='checkbox' disabled='true'";    
  78.                             }    
  79.                          }    
  80.                     },    
  81.                     {field:'open',title:'鏈?#37825;堝?#21975;搧',width:100,      
  82.                         formatter: function(value,row,index){    
  83.                             if(value) {    
  84.                                 return "<input type='checkbox' checked='checked' disabled='true'";    
  85.                             } else {    
  86.                                 return "<input type='checkbox' disabled='true'";    
  87.                             }    
  88.                         }    
  89.                      },    
  90.                     {field:'category.type',title:'鎵灞炲?#21975;搧绫?#37714;?,width:200, //category.type鏄?#37727;嗗搧绫?#37714;?nbsp;   
  91.                         formatter: function(value,row,index){    
  92.                             if(row.category != null && row.category.type != null) {    
  93.                                 return row.category.type; //濡?#37835;滃?#21975;搧绫?#37714;?#28051;嶄负绌?#38171;?#26473;?#37733;炲?#21975;搧绫?#37714;?nbsp;   
  94.                             } else {    
  95.                                 return "姝?#37727;嗗?#20345;殏鏃?#37832;?#37714;?#32491;?quot;;    
  96.                             }    
  97.                          }      
  98.                     }    
  99.                 ]]        
  100.             });     
  101.             //鎶婃櫘閫?#37928;?#37826;?#37832;?#22935;?#26462;寲?#36127;鏌?#29831;?#37820;滅储鏂?#37832;?#22935;?nbsp;   
  102.             $('#ss').searchbox({     
  103.                 //瑙?#37721;戞煡璇?#27996;?#28000;?nbsp;   
  104.                  searcher:function(value,name){ //value琛?#32448;?#26440;?#37711;?#37928;勫?nbsp;   
  105.                     //娣?#37716;?#29785;?#37721;?#28000;?#37934;?nbsp;   
  106.                 },     
  107.                 prompt:'璇?#26440;?#37711;?#37820;滅储鍏抽敭瀛?     
  108.             });     
  109.         });    
  110.     </script>    
  111.   </head>    
  112.       
  113.   <body>    
  114.     <table id="dg"></table>    
  115.         
  116.   </body>    
  117. </html>    

銆銆鎺?#28051;嬫潵?#22428;浠?#28729;屾垚productAction涓?#37928;剄ueryJoinCategory鏂规硶锛屽湪杩?#28052;嬪墠锛?#37711;?#29781;?#28729;屾垚service閮?#37714;?#38171;屾垜浠?#38318;?#37828;?#37711;?#28000;?#25652;?#28766;傛參?#21443;寰涓婂紑鍙?#37928;?#38171;?/p>

Java浠?#37934;?/div>
  1. //ProductService鎺?#37721;?nbsp;   
  2. public interface ProductService extends BaseService<Product> {    
  3.         
  4.     //鏌?#29831;?#37727;嗗?#20343;俊?#20229;锛岀骇?#20168;绫?#37714;?nbsp;   
  5.     public List<Product> queryJoinCategory(String type, int page, int size); //浣跨敤鍟嗗搧鐨?#37722;?#32457;版煡璇?nbsp;   
  6.     //鏍规嵁鍏抽敭瀛楁煡璇?#37804;?#29825;板?#26335;暟    
  7.     public Long getCount(String type);    
  8. }    
  9.     
  10. @SuppressWarnings("unchecked")    
  11. @Service("productService")    
  12. public class ProductServiceImpl extends BaseServiceImpl<Product> implements ProductService {    
  13.     
  14.     @Override    
  15.     public List<Product> queryJoinCategory(String name, int page, int size) {    
  16.         String hql = "from Product p left join fetch p.category where p.name like :name";    
  17.         return getSession().createQuery(hql)    
  18.                 .setString("name""%" + name + "%")    
  19.                 .setFirstResult((page-1) * size) //浠庣鍑犱釜?#32017;濮嬫?#21095;ず    
  20.                 .setMaxResults(size) //鏄剧ず鍑犱釜    
  21.                 .list();    
  22.     }    
  23.         
  24.     @Override    
  25.     public Long getCount(String name) {    
  26.         String hql = "select count(p) from Product p where p.name like :name";    
  27.         return (Long) getSession().createQuery(hql)    
  28.             .setString("name""%" + name + "%")    
  29.             .uniqueResult(); //杩?#37733;?#28051;鏉?#29825;板綍:鎬?#29825;板?#26335;暟    
  30.     }    
  31.     
  32. }    

銆銆涓嬮潰鍙?#28000;?#28729;屾垚productAction涓?#37928;剄ueryJoinCategory鏂规硶浜?#38171;?/p>

Java浠?#37934;?/div>
  1. @Controller("productAction")    
  2. @Scope("prototype")    
  3. public class ProductAction extends BaseAction<Product> {    
  4.         
  5.     public String queryJoinCategory() {    
  6.         System.out.println("name:" + model.getName());    
  7.         System.out.println("page锛?quot; + page);    
  8.         System.out.println("rows锛?quot; + rows);    
  9.             
  10.         //?#25956;?#28533;瀛樺偍鍒?#26916;?#37928;勬暟鎹?nbsp;   
  11.         pageMap = new HashMap<String, Object>();    
  12.             
  13.         //鏍规嵁鍏抽敭瀛楀拰鍒?#26916;?#37928;?#37721;傛暟鏌?#29831;?#37929;稿簲鐨勬暟鎹?nbsp;   
  14.         List<Product> productList = productService.queryJoinCategory(model.getName(), page, rows);    
  15.         pageMap.put("rows", productList); //瀛樺偍?#36127;JSON鏍?#23534;?nbsp;   
  16.         //鏍规嵁鍏抽敭瀛楁煡璇?#37804;?#29825;板?#26335;暟    
  17.         Long total = productService.getCount(model.getName());    
  18. //      System.out.println(total);    
  19.         pageMap.put("total", total); //瀛樺偍?#36127;JSON鏍?#23534;?nbsp;   
  20.         return "jsonMap";    
  21.     }    
  22.     
  23. }    

銆銆鎺?#28051;嬫潵?#28266;struts.xml涓?#26473;?#29723;?#38320;?#32515;?#38171;?#29882;?#28052;嬪墠鐨勫?#21975;搧绫?#28051;?#29297;鐨勬?#20346;▼锛?#37714;?#26473;?#38322;?#37721;?#28000;?#37930;嬪嚭锛屽紑鍙戝ソ浜?#28051;涓?#38171;屼?#23342;潰涓涓?#28751;?#36423;?#27996;?#38171;?/p>

XML/HTML浠?#37934;?/div>
  1. <action name="product_*" class="productAction" method="{1}">    
  2.     <result name="jsonMap" type="json">    
  3.         <param name="root">pageMap</param>    
  4.         <param name="excludeProperties">    
  5.             <!-- rows[0].category.account -->    
  6.             <!-- 鎶?#37813;鏈塧ccount杩囨护鎺?#38171;?#37722;?#37714;?#28028;氬嚭鐜版噿鍔?#26462;介棶棰?#38171;?#29831;?#38318;?#37714;?#28051;嬮潰鎴?#37733;?nbsp;-->             
  7.         </param>    
  8.     </result>    
  9. </action>    

SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37719;?#38171;氬?#21975;搧绫?#37737;?#37832;?#22959;?#37735;?#37928;?#37820;缓

銆銆杩欐牱鍚?#37721;扮?#23338;?#24531;?#27407;ソ浜?#38171;岀?#36346;悗?#32017;鍚痶omcat锛屾祴璇?#28051;涓?#38171;屽綋?#22428;浠?#37904;?#37713;诲乏渚?#38015;?#37719;?#37837;?#37928;勫?#21975;搧绠$悊鏃?#38171;屼?#27692;?#29808;嚭鍙?#26440;?#28641;?#28051;嬬獥鍙?#38171;?/p>

SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37719;?#38171;氬?#21975;搧绫?#37737;?#37832;?#22959;?#37735;?#37928;?#37820;缓

銆銆杩欐牱?#22428;浠?#28751;?#28729;屾垚浜嗗?#21975;搧绠$悊?#29541;鍙?#37928;勬鏋?#27996;?#37510;?/p>

 

]]>?#33931;浠跺紑鍙?/category>http://www.ojizl5.fun/software/770.html#commenthttp://www.ojizl5.fun/http://www.ojizl5.fun/feed.asp?cmt=770http://www.ojizl5.fun/cmd.asp?act=tb&id=770&key=2398712eSSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/software/769.html</link><pubDate>Tue, 24 Oct 2017 14:14:05 +0800</pubDate><guid>http://www.ojizl5.fun/software/769.html</guid><description><![CDATA[<p>銆銆涓?#28051;鑺傛垜浠?#37707;氬畬浜嗘煡璇㈠拰鍒?#38340;?#37727;嗗搧鐨?#37716;熻兘锛?#26473;?#28051;鑺傛垜浠仛涓涓嬫坊鍔犲拰?#27967;鏂板?#21975;搧鐨?#37716;熻兘銆?/p><p>銆銆<span style="font-size: medium;"><strong>1. 娣?#37716;犲?#21975;搧绫?#37714;?/strong></span></p><p>銆銆<strong>1.1 娣?#37716;?#32491;?#37714;?#37928;刄I璁?#29825;?/strong></p><p>銆銆?#22428;浠?#37711;?#29831;?#28051;涓嬫?#29882;?#38171;氶鍏堝綋?#25956;鎴风偣鍑?ldquo;娣?#37716;犲?#21975;搧”鏃?#38171;屾垜浠?#25652;?#29831;?#23534;瑰嚭涓涓?ldquo;娣?#37716;犲?#21975;搧”鐨刄I?#29541;鍙?#38171;堟敞鎰?#26473;?#38322;屼笉鏄?#29882;?#26462;?#37714;?#37826;?#37928;刯sp锛孍asyUI鍙?#37832;?#28051;涓?#26916;甸潰锛?#38171;屽?#29808;嚭杩?#28051;?ldquo;娣?#37716;犲?#21975;搧”鐨勭獥鍙?#37722;?#38171;屽簲璇?#38335;?#28003;?#28729;冪埗绫?#37928;?#37813;鏈夌獥鍙?#38171;?#37719;崇偣鍑?#37711;?#28000;?#37734;?#37826;规棤鏁?#38171;?#37721;兘鎿?#28003;滄坊鍔犲?#21975;搧鐨勭獥鍙?#38171;?#38171;?#32475;夌敤鎴峰~濂?#27996;嗕俊?#20229;鍚?#38171;屽湪鏂?#23534;瑰嚭?#28533;鐨勭獥鍙?#28051;婄偣鍑?ldquo;娣?#37716;?rdquo;鍚?#38171;屽皢璇锋眰鍙?#38315;?#32513;檚truts2锛岀?#36346;悗struts2鎷?#37714;?#29831;锋眰浣?#37721;傛暟锛?#28000;庢暟鎹?#25652;?#28051;?#37813;?#29723;屾坊鍔?#37716;?#28003;?#38171;?#26473;欐牱鍚?#37721;版搷浣?#28729;屾垚锛?#37722;屾?#36346;墠鍙伴偅杈?#29781;?#37714;?#37826;?#28051;涓嬪綋?#22688;椤甸潰锛?#38322;?#37826;版?#21095;ず鎵鏈夊?#21975;?#20341;?/p><p>銆銆?#22428;浠?#37836;ョ湅EasyUI鐨?#37826;囨。锛?#37721;?#37916;?#37826;板缓涓涓獥鍙?#37832;?#28051;?#32457;?#37826;规硶锛?#29781;?#28052;堜?#36328;敤?#29219;绛?#37714;涘缓锛?#29781;?#28052;堜?#36328;敤js鍒涘缓锛屾垜浠?#26473;?#38322;屼?#36328;敤js鍒涘缓锛屼絾鏄渶瑕?#28051;涓?lt;div>鐩掑瓙锛屽涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160509095158085.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>銆銆鍙?#28598;?#38171;屾垜浠?#37714;涘缓鐨?#37826;?#37928;勭獥鍙?#28051;嶉渶瑕佹渶灏忓寲锛?#37832;澶у寲锛屼絾鏄?#29781;侀?#20344;睆銆?#37813;浠?#26473;?#27996;涘?#28852;?#38318;藉湪div涓?#29825;?#32515;?#28610;?#38171;?#26473;?#38322;?#29781;佹敞鎰?#37928;?#28751;?#37828;?#38335;佸睆鐨?#37716;熻兘锛?#37733;犱负<div>鏀?#37928;?#37734;?#37826;?#28051;?#37722;?#38171;岄攣浣?#37928;?#28766;?#39582;曡寖鍥?#28052;?#28051;?#37722;?#38171;屾垜浠?#29781;侀攣浣?#37711;?#28766;?#38171;?#37813;浠?#29781;佹妸<div>鏀?#37714;癮index.jsp涓?#38171;屽簲?#36127;aindex.jsp涓?#27996;?#37922;?#27996;唓uery.jsp鐨勫唴瀹?#38171;堝寘鎷?#23075;?#37716;?#37816;夐挳锛?#38171;宷uery.jsp涓?#27996;?#37922;?#27996;唖ave.jsp鐨勫唴瀹?#38171;?#28751;?#37828;垜浠?#29781;佹?#21095;ず鐨勬坊鍔犵獥鍙I锛?#38171;?#37813;浠?#23534;瑰嚭?#29541;鍙?#37722;?#38171;屾垜浠?#29781;佹妸aindex.jsp鐨勮寖鍥?#38318;?#38335;?#28003;?#38171;?#37813;浠?lt;div>搴?#29831;?#37824;?#37714;癮index.jsp涓?#38171;?#37711;?#28003;?#28729;?#37916;板涓?#38171;?/p><p>銆銆?#28266;aindex.jsp鐨?lt;body>涓?#37826;版坊鍔犱竴涓?lt;div></p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"win"</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"collapsible:false,minimizable:false,maximizable:false,modal:true"</span><span class="tag">></span><span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>     </span></span></li></ol></div><p>銆銆鐒跺悗?#22428;浠?#28729;屽杽query.jsp涓?#23075;?#37716;?#32491;?#37714;?#37928;?#38318;?#37714;?#38171;?/p><div class="codeText"><div class="codeHead">JavaScript浠?#37934;?/div><ol start="1" class="dp-c"> <li class="alt"><span><span>{    </span></span></li> <li><span>    iconCls: <span class="string">'icon-add'</span><span>,    </span></span></li> <li class="alt"><span>    text:<span class="string">'娣?#37716;?#32491;?#37714;?</span><span>,    </span></span></li> <li><span>    handler: <span class="keyword">function</span><span>(){    </span></span></li> <li class="alt"><span>        parent.$(<span class="string">"#win"</span><span>).window({ </span><span class="comment">//鍥犱负<div>鏀惧湪浜哸index.jsp涓?#38171;?#37813;浠?#26473;?#38322;?#37714;涘缓?#29541;鍙?#29781;?#37711;?#29835;冪敤parent  </span><span>  </span></span></li> <li><span>            title:<span class="string">"娣?#37716;?#32491;?#37714;?quot;</span><span>,    </span></span></li> <li class="alt"><span>            width:350,    </span></li> <li><span>            height:150,    </span></li> <li class="alt"><span>            content:<span class="string">'<iframe src="send_category_save.action" frameborder="0" width="100%" height="100%"/>'</span><span>    </span></span></li> <li><span>        });    </span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆浠?#28051;婇潰鐨勬坊鍔?#32491;?#37714;?#28000;?#37934;?#28051;?#37721;?#28000;?#37930;嬪嚭锛屾坊鍔?#37722;?#37928;刄I锛屾垜浠?#23534;?#37711;EB-INF/category鐩綍涓?#37928;剆ave.jsp鏂?#28000;?#28051;?#37928;勫唴瀹?#38171;?#37818;?#28051;嬫潵?#22428;浠?#28729;屾垚save.jsp锛?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>      </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>      </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>      </span></span></li> <li><span>  <span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>      </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">style</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/css"</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>        form div {      </span></li> <li><span>            margin:5px;      </span></li> <li class="alt"><span>        }      </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">style</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>      </span></span></li> <li><span>        $(function(){      </span></li> <li class="alt"><span>            $("input[<span class="attribute">name</span><span>=</span><span class="attribute-value">type</span><span>]").validatebox({ //杩?#38322;屾槸“绫?#37714;?#37722;?#32457;?rdquo;鐨勯獙璇?#37716;熻兘锛屽鏋滅敤鎴锋病濉?#28610;?#28751;辨彁浜?#37928;?#29831;?#38171;屼細鏈?#37819;愮ず      </span></span></li> <li><span>                required:true,      </span></li> <li class="alt"><span>                missingMessage:'璇?#26440;?#37711;?#32491;?#37714;?#37722;?#32457;? //鎻愮ず鐨勫唴瀹?nbsp;     </span></li> <li><span>            });           </span></li> <li class="alt"><span>      </span></li> <li><span>                    //瀵?#32480;$悊鍛?#37928;勪?#23339;媺鍒?#29723;?#22935;?#26473;?#29723;?#26473;滅?#23338;姞杞?nbsp;     </span></li> <li class="alt"><span>                    $("#cc").combobox({         </span></li> <li><span>                        //灏?#29831;锋眰鍙?#38315;?#32513;檃ccountAction涓?#37928;剄uery鏂规硶澶勭悊锛?#26473;?#38322;岄渶瑕佸皢澶勭悊濂?#37928;勬暟鎹?#26473;?#37733;?#37714;?#26473;?#26440;规潵鏄剧ず浜?nbsp;锛?#37813;浠?#37722;?#37721;伴渶瑕佸皢?#26271;鎹?#37813;撳寘?#22426;json鏍?#23534;?#37721;?#26473;囨潵      </span></li> <li class="alt"><span>                        url:'account_query.action',        </span></li> <li><span>                        valueField:'id',          </span></li> <li class="alt"><span>                        textField:'login', //?#22428;浠?#28051;嬫媺鍒?#29723;?#28051;?#37828;剧ず鐨?#37828;?#32480;$悊鍛?#37928;勭?#35826;綍鍚?nbsp;     </span></li> <li><span>                        panelHeight:'auto', //?#22172;閫傚簲楂樺害      </span></li> <li class="alt"><span>                        panelWidth:120,//涓嬫媺鍒?#29723;?#37828;?#28051;?#28051;?#32513;?#28000;剁?#21228;垚鐨?nbsp;     </span></li> <li><span>                        width:120, //瑕?#37722;屾椂璁?#32515;?#28051;?#28051;?#28729;藉害鎵?#29723;?nbsp;     </span></li> <li class="alt"><span>                        editable:false //涓嬫?#22795;涓?#37711;佽缂?#26440;?nbsp;     </span></li> <li><span>                     });      </span></li> <li class="alt"><span>      </span></li> <li><span>            //?#29541;浣?#23534;?#37713;洪粯璁?#37828;?#32450;佺敤?#29529;璇?#38171;?#37733;犱负鍒氬?#29808;嚭鐨勭獥鍙?#38171;岀敤鎴?#26473;樻病濉?#28751;?#37828;剧ず鐨?#29831;?#38171;屽お涓?nbsp;     </span></li> <li class="alt"><span>            $("#ff").form("disableValidation");      </span></li> <li><span>            //?#25950;鍐宐utton鐨?#27996;?#28000;?#37510;?#37719;冲綋?#25956;鎴风偣鍑?ldquo;娣?#37716;?rdquo;鐨勬?#36346;欏仛鐨?#27996;?nbsp;     </span></li> <li class="alt"><span>            $("#btn").click(function(){      </span></li> <li><span>                //?#32017;鍚獙璇?nbsp;     </span></li> <li class="alt"><span>                $("#ff").form("enableValidation");      </span></li> <li><span>                //濡?#37835;滈獙璇佹垚鍔?#38171;?#37714;?#37819;?#27996;ゆ暟鎹?nbsp;     </span></li> <li class="alt"><span>                if($("#ff").form("validate")) {      </span></li> <li><span>                    //璋冪敤submit鏂规?#26335;彁浜ゆ暟鎹?nbsp;     </span></li> <li class="alt"><span>                    $("#ff").form('submit', {      </span></li> <li><span>                        url: 'category_save.action', //灏?#29831;锋眰鎻?#27996;?#32513;檆ategoryAction涓?#37928;剆ave鏂规硶澶勭悊      </span></li> <li class="alt"><span>                        success: function(){ //?#22426;鍔?#37722;?nbsp;     </span></li> <li><span>                            //濡?#37835;滄垚鍔?#27996;?#38171;?#37711;?#38338;綋?#22688;?#29541;鍙?nbsp;     </span></li> <li class="alt"><span>                            parent.$("#win").window("close");      </span></li> <li><span>                            //鍒?#37826;伴?#30008;潰锛?#37714;氬?#27693;坊鍔?#37928;?#28751;?#37828;剧?#21700;嚭?#28533;浜?#37510;?nbsp;     </span></li> <li class="alt"><span>                                                        //鑾?#37721;朼index--<span class="tag">></span><span>iframe--</span><span class="tag">></span><span>datagrid      </span></span></li> <li><span>                            parent.$("iframe[<span class="attribute">title</span><span>=</span><span class="attribute-value">'绫?#37714;?#32480;$悊'</span><span>]").get(0).contentWindow.$("#dg").datagrid("reload");      </span></span></li> <li class="alt"><span>                        }      </span></li> <li><span>                    });      </span></li> <li class="alt"><span>                }      </span></li> <li><span>            });      </span></li> <li class="alt"><span>        });      </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>  <span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>      </span></span></li> <li><span>        </span></li> <li class="alt"><span>  <span class="tag"><</span><span class="tag-name">body</span><span class="tag">></span><span>      </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">form</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"ff"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"post"</span><span class="tag">></span><span>         </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>         </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">label</span><span> </span><span class="attribute">for</span><span>=</span><span class="attribute-value">"name"</span><span class="tag">></span><span>鍟嗗搧鍚?#32457;?</span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span> </span><span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"type"</span><span> </span><span class="tag">/></span><span>         </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>         </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>                <span class="tag"><</span><span class="tag-name">label</span><span class="tag">></span><span>鎵灞?#32480;$悊鍛?#38171;?/span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span>       </span></span></li> <li><span>                <span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"cc"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"account.id"</span><span class="tag">/></span><span>      </span></span></li> <li class="alt"><span>            <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>      </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>         </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">label</span><span> </span><span class="attribute">for</span><span>=</span><span class="attribute-value">"hot"</span><span class="tag">></span><span>鐑?#37904;?</span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span>         </span></span></li> <li><span>                鏄?span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"radio"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"hot"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"true"</span><span> </span><span class="tag">/></span><span>       </span></span></li> <li class="alt"><span>                鍚?nbsp;<span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"radio"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"hot"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"true"</span><span> </span><span class="tag">/></span><span>      </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>        </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>      </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"btn"</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"easyui-linkbutton"</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"iconCls:'icon-add'"</span><span class="tag">></span><span>娣?#37716;?/span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>        </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>        </span></span></li> <li><span>    <span class="tag"></</span><span class="tag-name">form</span><span class="tag">></span><span>         </span></span></li> <li class="alt"><span>  <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>      </span></span></li> <li><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span></span></li></ol></div><p>銆銆?#22688;鍙?#37928;?#37828;剧ず浠?#37721;?#37721;?#38315;佽?#38155;眰閮藉?#27692;畬浜?#38171;?#37818;?#28051;嬫潵灏?#37828;?#37707;氬悗鍙?#37928;勭?#23338;簭浜?#37510;?/p><p>銆銆<strong>1.2 娣?#37716;?#32491;?#37714;?#37928;?#38315;?#26440;戝疄鐜?/strong></p><p>銆銆?#22688;鍙?#28028;氭妸?#26271;鎹?#37721;?#38315;?#32513;檆ategoryAction涓?#37928;剆ave鏂规硶鍘?#37813;?#29723;?#38171;?#37813;浠ユ垜浠?#37720;诲啓Action灏?#29723;?#27996;?#38171;?#37733;犱负鍚?#37721;?#37721;渶瑕佸皢绫?#37714;?#23075;?#37716;?#26473;涙暟鎹?#25652;?#38171;屼笉?#28214;瑕?#37722;戝墠鍙?#26473;?#37733;炴暟鎹?#38171;?#37813;浠ユ瘮杈?#32480;鍗?#38171;?#37929;?#37818;?#37712;欏ソaction灏?#29723;?#27996;?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"categoryAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryAction </span><span class="keyword">extends</span><span> BaseAction<Category> {    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="comment">//鐪佺暐鍏?#28000;?#28000;?#37934;?hellip;…  </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> save() {    </span></span></li> <li class="alt"><span>        System.out.println(model);    </span></li> <li><span>        categoryService.save(model);    </span></li> <li class="alt"><span>    }    </span></li> <li><span>    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆杩欐牱?#26271;鎹?#28751;卞瓨鍏ユ暟鎹?#25652;?#27996;?#38171;?#28729;?#27996;?#37722;?#38171;屽墠鍙伴偅杈?#37714;?#37826;版?#21095;ず锛屽氨?#20824;灏?#37826;版坊鍔?#37928;勫?#21975;搧绫?#37714;?#37828;剧?#21700;嚭?#28533;浜?#38171;屾垜浠湅涓涓?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160511212557944.png" width="600" height="278" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160511212734837.png" style="text-align: start;" width="600" height="259" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160509101443157.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? style="text-align: start;" /></p><p>銆銆娣?#37716;犲?#21975;搧绫?#37714;?#26473;?#28051;鍧楁垜浠?#28751;卞?#27692;畬浜?#37510;?#28051;嬮潰鍋氭洿鏂板?#21975;搧绫?#37714;?#38317;?#37735;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>2. ?#27967;鏂板?#21975;搧绫?#37714;?/strong></span></p><p>銆銆<strong>2.1 ?#27967;鏂?#32491;?#37714;?#37928;刄I璁?#29825;?/strong></p><p>銆銆?#27967;鏂板?#21975;搧绫?#37714;?#37928;勬?#29882;拰涓婇潰鐨勬坊鍔?#37928;?#37737;?#37832;?#37929;?#37722;?#38171;岄鍏?#28052;?#37828;?#23534;瑰嚭涓涓猆I?#29541;鍙?#38171;岀?#36346;?#24227;敤鎴峰~濂芥暟鎹?#37721;?#38315;?#32513;?#37722;?#37721;?#38171;?#37722;?#37721;版洿鏂版暟鎹?#25652;?#38171;屽墠鍙板啀鍒?#37826;版?#21095;ず銆傛垜浠?#28000;嶇劧閲囩敤涓婇潰鐨?#37826;规硶鍒涘缓涓涓猆I?#29541;鍙?#37510;?lt;div>鐩掑瓙涓嶇敤鏀?#37716;?#28000;涔?#38171;屾垜浠渶瑕佸仛鐨?#28751;?#37828;湪query.jsp涓?#28729;屽?#21228;洿“?#27967;鏂?#32491;?#37714;?rdquo;閮?#37714;?#37928;?#28000;?#37934;?#38171;?/p><div class="codeText"><div class="codeHead">JavaScript浠?#37934;?/div><ol start="1" class="dp-c"> <li class="alt"><span><span>{    </span></span></li> <li><span>    iconCls: <span class="string">'icon-edit'</span><span>,    </span></span></li> <li class="alt"><span>    text:<span class="string">'?#27967;鏂?#32491;?#37714;?</span><span>,    </span></span></li> <li><span>    handler: <span class="keyword">function</span><span>(){    </span></span></li> <li class="alt"><span>        <span class="comment">//鍒?#37826;?#37828;?#37722;?#37832;?#38315;?#28051;?#29723;?#29825;板綍锛屼?#36328;敤getSelections鑾?#37721;?#38315;?#28051;?#37928;?#37813;鏈?#29723;?nbsp; </span><span>  </span></span></li> <li><span>        <span class="keyword">var</span><span> rows = $(</span><span class="string">"#dg"</span><span>).datagrid(</span><span class="string">"getSelections"</span><span>);    </span></span></li> <li class="alt"><span>        <span class="keyword">if</span><span>(rows.length == 0) {    </span></span></li> <li><span>            <span class="comment">//寮瑰嚭鎻愮?#36720;俊?#20229;  </span><span>  </span></span></li> <li class="alt"><span>            $.messager.show({ <span class="comment">//璇硶绫?#28028;?#27996;巎ava涓?#37928;?#38344;?#37804;佹?#35268;硶锛?#37929;?#37818;?#28725;硅薄璋冪敤  </span><span>  </span></span></li> <li><span>                title:<span class="string">'閿?#29831;?#37819;愮ず'</span><span>,    </span></span></li> <li class="alt"><span>                msg:<span class="string">'鑷冲皯瑕?#38315;?#37815;?#28051;鏉?#29825;板綍'</span><span>,    </span></span></li> <li><span>                timeout:2000,    </span></li> <li class="alt"><span>                showType:<span class="string">'slide'</span><span>,    </span></span></li> <li><span>            });    </span></li> <li class="alt"><span>        }<span class="keyword">else</span><span> </span><span class="keyword">if</span><span>(rows.length != 1) {    </span></span></li> <li><span>            <span class="comment">//寮瑰嚭鎻愮?#36720;俊?#20229;  </span><span>  </span></span></li> <li class="alt"><span>            $.messager.show({ <span class="comment">//璇硶绫?#28028;?#27996;巎ava涓?#37928;?#38344;?#37804;佹?#35268;硶锛?#37929;?#37818;?#28725;硅薄璋冪敤  </span><span>  </span></span></li> <li><span>                title:<span class="string">'閿?#29831;?#37819;愮ず'</span><span>,    </span></span></li> <li class="alt"><span>                msg:<span class="string">'姣?#23046;?#37721;兘?#27967;鏂?#28051;鏉?#29825;板綍'</span><span>,    </span></span></li> <li><span>                timeout:2000,    </span></li> <li class="alt"><span>                showType:<span class="string">'slide'</span><span>,    </span></span></li> <li><span>            });    </span></li> <li class="alt"><span>        } <span class="keyword">else</span><span>{    </span></span></li> <li><span>            <span class="comment">//1. 寮瑰嚭?#27967;鏂?#37928;?#26916;甸潰  </span><span>  </span></span></li> <li class="alt"><span>            parent.$(<span class="string">"#win"</span><span>).window({    </span></span></li> <li><span>                title:<span class="string">"娣?#37716;?#32491;?#37714;?quot;</span><span>,    </span></span></li> <li class="alt"><span>                width:350,    </span></li> <li><span>                height:250,    </span></li> <li class="alt"><span>                content:<span class="string">'<iframe src="send_category_update.action" frameborder="0" width="100%" height="100%"/>'</span><span>    </span></span></li> <li><span>            });    </span></li> <li class="alt"><span>            <span class="comment">//2.   </span><span>  </span></span></li> <li><span>        }    </span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆?#22428;浠?#37714;?#37835;?#28051;涓?#28051;婇潰鐨刯s浠?#37934;?#38171;氶鍏?#38014;?#37721;栫敤鎴峰嬀閫?#29781;佹洿鏂?#37928;勮锛屽鏋滄病鏈?#38315;?#28051;?#37714;?#37819;愮?#34425;敤鎴?#38007;冲?#25126;渶瑕?#38315;?#28051;?#28051;椤?#32510;綍鍘绘洿鏂?#38171;屽鏋?#38315;?#28051;?#37928;勪笉姝?#28051;鏉?#32510;綍锛屼篃寰楁?#24878;?#34425;敤鎴锋瘡娆?#37721;兘?#27967;鏂?#28051;鏉?#32510;綍銆傚綋杩?#27996;?#37714;?#37826;?#38318;?#32513;撴潫鍚?#38171;屼繚璇?#27996;嗙敤鎴峰嬀閫?#27996;?#28051;鏉?#32510;綍锛?#38317;?#28052;堟垜浠紑濮嬪?#28056;缓鏂?#37928;刄I?#29541;鍙?#27996;?#38171;?#26473;?#38322;?#26473;?#37828;?#29882;?#28051;婇潰涓?#29297;锛屽紩鍏EB-INF/category鐩綍涓?#37928;剈pdate.jsp椤甸潰鐨勫唴瀹?#38171;屾垜浠潵?#28229;涓媢pdate.jsp椤甸潰鍐?#28729;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>    </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">style</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/css"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        form div {    </span></li> <li><span>            margin:5px;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">style</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>    </span></span></li> <li><span>        $(function(){    </span></li> <li class="alt"><span>            //iframe涓?#37928;刣atagrid瀵硅薄    </span></li> <li><span>            var <span class="attribute">dg</span><span> = </span><span class="attribute-value">parent</span><span>.$("iframe[</span><span class="attribute">title</span><span>=</span><span class="attribute-value">'绫?#37714;?#32480;$悊'</span><span>]").get(0).contentWindow.$("#dg");    </span></span></li> <li class="alt"><span>                </span></li> <li><span>            //瀵?#32480;$悊鍛?#37928;勪?#23339;媺鍒?#29723;?#22935;?#26473;?#29723;?#26473;滅?#23338;姞杞?nbsp;   </span></li> <li class="alt"><span>            $("#cc").combobox({       </span></li> <li><span>                //灏?#29831;锋眰鍙?#38315;?#32513;檃ccountAction涓?#37928;剄uery鏂规硶澶勭悊锛?#26473;?#38322;岄渶瑕佸皢澶勭悊濂?#37928;勬暟鎹?#26473;?#37733;?#37714;?#26473;?#26440;规潵鏄剧ず浜?nbsp;锛?#37813;浠?#37722;?#37721;伴渶瑕佸皢?#26271;鎹?#37813;撳寘?#22426;json鏍?#23534;?#37721;?#26473;囨潵    </span></li> <li class="alt"><span>                url:'account_query.action',      </span></li> <li><span>                valueField:'id',        </span></li> <li class="alt"><span>                textField:'login', //?#22428;浠?#28051;嬫媺鍒?#29723;?#28051;?#37828;剧ず鐨?#37828;?#32480;$悊鍛?#37928;勭?#35826;綍鍚?nbsp;   </span></li> <li><span>                panelHeight:'auto', //?#22172;閫傚簲楂樺害    </span></li> <li class="alt"><span>                panelWidth:120,//涓嬫媺鍒?#29723;?#37828;?#28051;?#28051;?#32513;?#28000;剁?#21228;垚鐨?nbsp;   </span></li> <li><span>                width:120, //瑕?#37722;屾椂璁?#32515;?#28051;?#28051;?#28729;藉害鎵?#29723;?nbsp;   </span></li> <li class="alt"><span>                editable:false //涓嬫?#22795;涓?#37711;佽缂?#26440;?nbsp;   </span></li> <li><span>             });      </span></li> <li class="alt"><span>                </span></li> <li><span>            // 瀹屾垚?#26271;鎹?#37928;?#37733;炴樉锛屾洿鏂版椂锛岀敤鎴疯偗瀹?#37711;堥?#37815;?#27996;?#29781;佹洿鏂?#37928;?#38317;?#28051;琛?#38171;岄鍏堟垜浠?#23536;楁嬁鍒伴偅涓琛?nbsp;   </span></li> <li class="alt"><span>            var <span class="attribute">rows</span><span> = </span><span class="attribute-value">dg</span><span>.datagrid("getSelections");    </span></span></li> <li><span>            //灏?#37815;?#37714;?#37928;?#38317;?#28051;琛屽?#29808;簲鐨勬暟鎹?#28699;楁鍔?#26462;?#37714;?#29723;?#37719;?#38322;?#38171;?#28729;?#37916;?#37733;炴樉    </span></li> <li class="alt"><span>            $("#ff").form('load',{    </span></li> <li><span>                id:rows[0].id,    </span></li> <li class="alt"><span>                type:rows[0].type,    </span></li> <li><span>                    hot:rows[0].hot,    </span></li> <li class="alt"><span>                'account.id':rows[0].account.id //EasyUI涓嶆敮鎸乤ccount.id杩?#32457;嶇?#35268;搷浣?#38171;?#37813;浠?#29781;?#37716;犱釜寮?#37721;?nbsp;   </span></li> <li><span>            });    </span></li> <li class="alt"><span>    </span></li> <li><span>            //鍥炴樉瀹?#27996;嗘暟鎹?#37722;?#38171;?#29825;?#32515;?#28051;涓嬮獙璇?#37716;熻兘    </span></li> <li class="alt"><span>            $("input[<span class="attribute">name</span><span>=</span><span class="attribute-value">type</span><span>]").validatebox({    </span></span></li> <li><span>                required:true,    </span></li> <li class="alt"><span>                missingMessage:'璇?#26440;?#37711;?#32491;?#37714;?#37722;?#32457;?    </span></li> <li><span>            });         </span></li> <li class="alt"><span>            //?#29541;浣?#23534;?#37713;洪粯璁?#37827;剁?#20346;敤?#29529;璇?nbsp;   </span></li> <li><span>            $("#ff").form("disableValidation");    </span></li> <li class="alt"><span>            //?#25950;鍐宐utton鐨?#27996;?#28000;?nbsp;   </span></li> <li><span>            $("#btn").click(function(){    </span></li> <li class="alt"><span>                //?#32017;鍚獙璇?nbsp;   </span></li> <li><span>                $("#ff").form("enableValidation");    </span></li> <li class="alt"><span>                //濡?#37835;滈獙璇佹垚鍔?#38171;?#37714;?#37819;?#27996;ゆ暟鎹?nbsp;   </span></li> <li><span>                if($("#ff").form("validate")) {    </span></li> <li class="alt"><span>                    //璋冪敤submit鏂规?#26335;彁浜ゆ暟鎹?nbsp;   </span></li> <li><span>                    $("#ff").form('submit', {    </span></li> <li class="alt"><span>                        url: 'category_update.action', //鎻?#27996;?#37827;跺皢璇锋眰浼?#32513;檆ategoryAction鐨剈pdate鏂规硶鎵?#29723;?nbsp;   </span></li> <li><span>                        success: function(){    </span></li> <li class="alt"><span>                            //濡?#37835;滄垚鍔?#27996;?#38171;?#37711;?#38338;綋?#22688;?#29541;鍙?#38171;?#39582;跺埛鏂伴?#30008;潰    </span></li> <li><span>                            parent.$("#win").window("close");    </span></li> <li class="alt"><span>                            dg.datagrid("reload");    </span></li> <li><span>                        }    </span></li> <li class="alt"><span>                    });    </span></li> <li><span>                }    </span></li> <li class="alt"><span>            });    </span></li> <li><span>        });    </span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>      </span></li> <li><span>  <span class="tag"><</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">form</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"ff"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"post"</span><span class="tag">></span><span>       </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">label</span><span> </span><span class="attribute">for</span><span>=</span><span class="attribute-value">"name"</span><span class="tag">></span><span>绫?#37714;?#37722;?#32457;?</span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span> </span><span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"type"</span><span> </span><span class="tag">/></span><span>       </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">label</span><span> </span><span class="attribute">for</span><span>=</span><span class="attribute-value">"hot"</span><span class="tag">></span><span>鐑?#37904;?</span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>                鏄?span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"radio"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"hot"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"true"</span><span> </span><span class="tag">/></span><span>     </span></span></li> <li><span>                鍚?span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"radio"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"hot"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"false"</span><span> </span><span class="tag">/></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>      </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">label</span><span> </span><span class="attribute">for</span><span>=</span><span class="attribute-value">"account"</span><span class="tag">></span><span>鎵灞?#32480;$悊鍛?</span><span class="tag"></</span><span class="tag-name">label</span><span class="tag">></span><span>    </span></span></li> <li><span>             <span class="comments"><!-- 涓嬫媺鍒?#29723;ㄦ垜浠?#38322;囩敤杩滅?#23338;姞杞?#37928;?#37826;规硶鍔?#26462;?#32480;$悊鍛樻暟鎹?nbsp;--></span><span>    </span></span></li> <li class="alt"><span>             <span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"cc"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"account.id"</span><span> </span><span class="tag">/></span><span>    </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"btn"</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"easyui-linkbutton"</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"iconCls:'icon-edit'"</span><span class="tag">></span><span>?#27967;鏂?/span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>      </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"hidden"</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"id"</span><span> </span><span class="tag">/></span><span>    </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>  `    </span></span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">form</span><span class="tag">></span><span>       </span></span></li> <li><span>  <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆?#27967;鏂?#28051;?#23075;?#37716;犱笉鍚?#37928;?#37734;?#37826;瑰湪浜?#38171;岄鍏堝?#26945;暟鎹?#37733;炴樉锛岀?#36346;悗杩?#37832;?#28051;?#28051;嬫媺鍒?#29723;?#37828;剧ず绠$悊鍛樻暟鎹?#38171;?#37733;犱负鎵灞?#32480;$悊鍛?#28052;?#29781;佹洿鏂?#37510;傛垜浠湅?#28229;涓婇潰鐨?#28000;?#37934;?#38171;岄鍏堜?#36328;敤杩滅?#23338;姞杞?#37928;?#37826;规硶鍔?#26462;?#32480;$悊鍛樻暟鎹?#38171;?#37711;?#37722;戝悗鍙?#37721;?#38315;?#28051;涓?#29831;锋眰锛?#37722;?#37721;癮ccountAction鐨剄uery鏂规硶澶勭悊瀹?#37722;?#38171;岀?#24714;鍛樻暟鎹?#37813;撳寘?#22426;json鏍?#23534;?#26473;?#37733;?#37733;炴潵锛?#26473;欐牱灏辫兘鎷?#37714;?#32480;$悊鍛樻暟鎹?#27996;?#38171;屾嬁鍒?#37722;?#38171;屽氨鍙?#28000;?#26473;?#29723;屾暟鎹?#37928;?#37733;炴樉浜?#37510;傛垜浠湅涓涓?#37722;?#37721;?#37928;勭?#23338;簭锛?/p><p>銆銆<strong>2.2 ?#27967;鏂?#32491;?#37714;?#37928;?#38315;?#26440;戝疄鐜?/strong></p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"baseAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> BaseAction<T> </span><span class="keyword">extends</span><span> ActionSupport </span><span class="keyword">implements</span><span> RequestAware,SessionAware,ApplicationAware,ModelDriven<T> {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="comment">//?#25956;?#28533;瑁?#37832;?#28751;?#29781;佽鎵撳寘?#22426;json鏍?#23534;?#26473;?#37733;?#32513;欏墠鍙?#37928;勬暟鎹?#38171;屼?#23342;潰瑕?#28729;?#37916;癵et鏂规硶  </span><span>  </span></span></li> <li><span>    <span class="keyword">protected</span><span> List<T> jsonList = </span><span class="keyword">null</span><span>;    </span></span></li> <li class="alt"><span>    <span class="comment">//鐪佺暐鍏?#28000;?#37826;规硶……  </span><span>  </span></span></li> <li><span>        </span></li> <li class="alt"><span>}    </span></li> <li><span>    </span></li> <li class="alt"><span><span class="comment">//AccountAction  </span><span>  </span></span></li> <li><span><span class="annotation">@Controller</span><span>(</span><span class="string">"accountAction"</span><span>)    </span></span></li> <li class="alt"><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> AccountAction </span><span class="keyword">extends</span><span> BaseAction<Account> {    </span></span></li> <li class="alt"><span>        </span></li> <li><span>    <span class="keyword">public</span><span> String query() {    </span></span></li> <li class="alt"><span>        jsonList = accountService.query();    </span></li> <li><span>        <span class="keyword">return</span><span> </span><span class="string">"jsonList"</span><span>;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆鎺?#28051;嬫潵?#22428;浠?#38320;?#32515;?#28051;涓媠truts.xml鏂?#28000;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"account_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"accountAction"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"{1}"</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"jsonList"</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"json"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">param</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"root"</span><span class="tag">></span><span>jsonList</span><span class="tag"></</span><span class="tag-name">param</span><span class="tag">></span><span>    </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">param</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"excludeProperties"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="comments"><!-- [0].pass, [1].pass --></span><span>    </span></span></li> <li><span>            <span class="comments"><!-- 姝?#37714;?#29723;?#26440;?#23534;?#37828;剧ず鏈塨ug锛屾?#25116;?#23342;潰鎴?#28051;?#37733;?nbsp;--></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">param</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li></ol></div><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160509105831494.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28052;?#38171;氭坊鍔犲拰?#27967;鏂板?#21975;搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>       瀹屾垚鍥炴樉鍚?#38171;屽氨鏄洿鏂版搷浣?#27996;?#38171;屽綋?#21159;涔?#37832;夐獙璇?#37928;?#37716;熻兘锛屽拰娣?#37716;犱竴?#29297;鐨?#38171;屾洿鏂版搷浣?#28751;?#29831;锋眰浼?#32513;檆ategoryAction鐨剈pdate鏂规硶鎵?#29723;?#38171;屾瘮杈?#32480;鍗?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"categoryAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryAction </span><span class="keyword">extends</span><span> BaseAction<Category> {    </span></span></li> <li><span>    <span class="comment">//鐪佺暐鍏?#28000;?#37826;规硶……  </span><span>  </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> update() {    </span></span></li> <li><span>        System.out.println(model);    </span></li> <li class="alt"><span>        categoryService.update(model);    </span></li> <li><span>    }    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆鍒版锛屾垜浠?#28729;屾垚浜嗗?#21975;搧绫?#37714;?#37928;勬坊鍔犲拰?#27967;鏂版搷浣?#37510;?/p><p> </p>]]></description><category>?#33931;浠跺紑鍙?/category><comments>http://www.ojizl5.fun/software/769.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=769</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=769&key=ba59295b</trackback:ping></item><item><title>SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/software/768.html</link><pubDate>Wed, 11 Oct 2017 09:18:20 +0800</pubDate><guid>http://www.ojizl5.fun/software/768.html</guid><description><![CDATA[<p>銆銆涓?#28051;鑺傛垜浠?#28729;屾垚浜?#28003;跨敤DataGrid鏄剧ず鎵鏈夊?#21975;?#20343;俊?#20229;锛?#26473;欒?#20635;垜浠紑濮嬫坊鍔?#37713;犱釜鍔熻兘锛氭坊鍔?#37510;佹洿鏂?#37510;?#37714;?#38340;ゅ拰鏌?#29831;?#37510;傞鍏堟垜浠?#28729;?#37916;?#28051;嬪墠鍙?#37928;?#37828;剧ず锛岀?#36346;悗鍐嶅?#27692;悗鍙?#38014;?#37721;栨暟鎹?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>1. 娣?#37716;?#37510;佹洿鏂?#37510;?#37714;?#38340;ゅ拰鏌?#29831;?#37716;熻兘鐨勫墠鍙?#28729;?#37916;?/strong></span></p><p>銆銆DataGrid鎺?#28000;?#38322;?#37832;?#28051;猼oolbar灞炴?#38171;屾槸娣?#37716;犲伐鍏?#37837;?#37928;?#38171;屾垜浠?#37721;?#28000;ュ湪toolbar灞炴?#28051;?#23075;?#37716;?#26473;?#27996;?#37816;夐挳?#28533;瀹?#37916;?#37929;稿簲鐨?#37716;熻兘銆?#37711;堢湅涓涓嬪畼鏂?#37826;囨。瀵箃oolbar鐨?#28729;?#28052;?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160508101650902.png" width="600" height="334" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>銆銆?#22428;浠?#28003;跨敤?#26271;缁?#37928;?#37826;?#23534;?#28729;?#28052;夊伐鍏?#37837;?#38171;屽湪query.jsp椤甸潰涓?#37826;版坊鍔犲涓?#28000;?#37934;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>    </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">style</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/css"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        body {    </span></li> <li><span>            margin: 1px;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>                .searchbox {    </span></li> <li class="alt"><span>                        margin: -3;    </span></li> <li><span>                }    </span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">style</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        $(function(){    </span></li> <li><span>            $('#dg').datagrid({       </span></li> <li class="alt"><span>                //url鍦板潃鏀逛负璇锋眰categoryAction    </span></li> <li><span>                url:'category_queryJoinAccount.action',    </span></li> <li class="alt"><span>    </span></li> <li><span>                singleSelect:false, //濡?#37835;滀负鐪?#38171;?#37721;?#37711;佽鍗?#29723;屾?#21095;ず锛?#37711;?#38315;?#37716;熻兘澶?#37825;?nbsp;   </span></li> <li class="alt"><span>                //璁?#32515;?#37714;?#26916;?nbsp;   </span></li> <li><span>                pagination:true,    </span></li> <li class="alt"><span>                //璁?#32515;?#23011;?#26916;?#37828;剧ず鐨?#29825;板?#26335;暟锛岄粯璁?#37828;?0涓?nbsp;   </span></li> <li><span>                pageSize:5,    </span></li> <li class="alt"><span>                //璁?#32515;?#37721;?#38315;?#37928;勬瘡椤?#29825;板?#26335;暟锛屼緵?#25956;鎴?#38315;?#37815;?#38171;岄粯璁?#37828;?0,20,30,40...    </span></li> <li><span>                pageList:[5,10,15,20],    </span></li> <li class="alt"><span>                idField:'id',//鎸?#28729;歩d?#36127;?#29219;璇嗗?#26945;锛屽湪鍒?#38340;?#38171;屾洿鏂?#37928;勬?#36346;?#37832;夌敤锛屽鏋?#38320;?#32515;?#23005;?#28699;楁锛屽湪?#28821;椤?#37827;?#38171;屾崲椤?#28051;?#28028;氬奖鍝?#38315;?#28051;?#37928;?#26916;?nbsp;   </span></li> <li><span>    </span></li> <li class="alt"><span>                     /*********************娣?#37716;?#37928;?#28000;?#37934;?**********************/    </span></li> <li><span>                toolbar: [{    </span></li> <li class="alt"><span>                    iconCls: 'icon-add',    </span></li> <li><span>                    text:'娣?#37716;?#32491;?#37714;?,    </span></li> <li class="alt"><span>                    handler: function(){    </span></li> <li><span>                        alert('--鍔?#23075;?#32491;?#37714;?-');    </span></li> <li class="alt"><span>                    }    </span></li> <li><span>                },'-',{    </span></li> <li class="alt"><span>                    iconCls: 'icon-edit',    </span></li> <li><span>                    text:'?#27967;鏂?#32491;?#37714;?,    </span></li> <li class="alt"><span>                    handler: function(){    </span></li> <li><span>                        alert('--?#27967;鏂?#32491;?#37714;?-');    </span></li> <li class="alt"><span>                    }    </span></li> <li><span>                },'-',{    </span></li> <li class="alt"><span>                    iconCls: 'icon-remove',    </span></li> <li><span>                    text:'鍒?#38340;?#32491;?#37714;?,    </span></li> <li class="alt"><span>                    handler: function(){    </span></li> <li><span>                        //鍒?#37826;?#37828;?#37722;?#37832;?#38315;?#28051;?#29723;?#29825;板綍锛屼?#36328;敤getSelections鑾?#37721;?#38315;?#28051;?#37928;?#37813;鏈?#29723;?nbsp;   </span></li> <li class="alt"><span>                        var <span class="attribute">rows</span><span> = $("#dg").datagrid("getSelections");    </span></span></li> <li><span>                        //杩?#37733;?#29722;?#38315;?#28051;?#37928;勮锛屽鏋滄病鏈?#28000;?#28003;?#29723;?#29722;?#38315;?#28051;?#38171;?#37714;?#26473;?#37733;炵?#28888;暟缁?nbsp;   </span></li> <li class="alt"><span>                        if(<span class="attribute">rows.length</span><span> == 0) {    </span></span></li> <li><span>                            //寮瑰嚭鎻愮?#36720;俊?#20229;    </span></li> <li class="alt"><span>                            $.messager.show({ //璇硶绫?#28028;?#27996;巎ava涓?#37928;?#38344;?#37804;佹?#35268;硶锛?#37929;?#37818;?#28725;硅薄璋冪敤    </span></li> <li><span>                                title:'閿?#29831;?#37819;愮ず',    </span></li> <li class="alt"><span>                                msg:'鑷冲皯瑕?#38315;?#37815;?#28051;鏉?#29825;板綍',    </span></li> <li><span>                                timeout:2000,    </span></li> <li class="alt"><span>                                showType:'slide',    </span></li> <li><span>                            });    </span></li> <li class="alt"><span>                        } else {    </span></li> <li><span>                            //鎻愮ず鏄?#37722;?#32429;?#29825;?#37714;?#38340;?#38171;屽鏋?#32429;?#29825;?#37714;?#37813;?#29723;?#37714;?#38340;?#37928;?#38315;?#26440;?nbsp;   </span></li> <li class="alt"><span>                            $.messager.confirm('鍒?#38340;?#37928;?#32429;?#29825;?#28725;?#29831;濇', '?#20557;纭?#28729;?#29781;?#37714;?#38340;?#23005;?#26916;?#37722;?#38171;?, function(r){    </span></li> <li><span>                                if (r){    </span></li> <li class="alt"><span>                                // 閫?#22189;鎿?#28003;?    </span></li> <li><span>                                    alert("--鍒?#38340;?#37823;?#28003;?-")    </span></li> <li class="alt"><span>                                }    </span></li> <li><span>                            });    </span></li> <li class="alt"><span>                        }                           </span></li> <li><span>                    }    </span></li> <li class="alt"><span>                 },'-',{ //鏌?#29831;?#37816;夐挳涓?#37828;疞inkButton锛?#28729;?#37832;?#29831;硶锛屼絾鏄?#28052;?#37824;?#37816;佽В鏋怘TML?#29219;绛?nbsp;   </span></li> <li><span>                     text:"<span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">'ss'</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">'serach'</span><span> </span><span class="tag">/></span><span>"    </span></span></li> <li class="alt"><span>                 }],    </span></li> <li><span>                   </span></li> <li class="alt"><span>                //鎶婃櫘閫?#37928;?#37826;?#37832;?#22935;?#26462;寲?#36127;鏌?#29831;?#37820;滅储鏂?#37832;?#22935;?nbsp;   </span></li> <li><span>                $('#ss').searchbox({     </span></li> <li class="alt"><span>                    //瑙?#37721;戞煡璇?#27996;?#28000;?nbsp;   </span></li> <li><span>                    searcher:function(value,name){ //value琛?#32448;?#26440;?#37711;?#37928;勫?nbsp;   </span></li> <li class="alt"><span>                                           //鏌?#29831;?#37823;?#28003;?nbsp;   </span></li> <li><span>                    },     </span></li> <li class="alt"><span>                    prompt:'璇?#26440;?#37711;?#37820;滅储鍏抽敭瀛? //?#31919;璁?#37928;?#37828;剧ず    </span></li> <li><span>                });     </span></li> <li class="alt"><span>               /*********************************************************************/    </span></li> <li><span>    </span></li> <li class="alt"><span>        });    </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>  <span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li><span>      </span></li> <li class="alt"><span>  <span class="tag"><</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">table</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"dg"</span><span class="tag">></span><span class="tag"></</span><span class="tag-name">table</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>  <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆杩欐牱?#22428;浠?#28751;?#37820;?#28610;?#27996;?#23075;?#37716;?#37510;佹洿鏂?#37510;?#37714;?#38340;ゅ拰鏌?#29831;?#37928;勫墠鍙版鏋?#27996;?#38171;?#37916;板湪鍙?#28000;ュ湪?#22688;鍙版?#21095;ず浜?#38171;?#37722;?#37721;版病鏈夋暟鎹?#26473;囨潵锛?#37721;?#37828;?#23534;瑰嚭涓?#37819;愮?#28888;锛屼笉杩囨?#21095;ず鍔熻兘宸茬粡瀹屾垚锛岀湅涓涓嬫?#22559;灉锛?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160508103319475.png" width="600" height="296" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>銆銆鎺?#28051;嬫潵?#22428;浠?#38315;?#28051;潵瀹屾垚鐩稿簲鐨?#37716;熻兘銆?/p><p>銆銆<span style="font-size: medium;"><strong>2. DataGrid绫?#37714;?#37836;?#29831;?#37928;?#28729;?#37916;?/strong></span></p><p>銆銆鏌?#29831;?#37928;?#28729;?#37916;版槸鏈绠鍗?#37928;?#38171;屽湪鎼滅?#29363;涓?#26440;?#37711;?#37711;抽敭瀛?#38171;岀?#36346;悗灏?#37711;抽敭瀛?#28003;滀负鍙傛暟浼?#32513;檃ction锛岀?#36346;悗Service浠庢暟鎹?#25652;?#28051;?#37815;垮嚭?#26271;鎹?#38171;?#37813;撳寘?#22426;json鏍?#23534;?#28028;?#37714;板墠鍙版潵鏄剧ず鍗?#37721;?#38171;?#26473;?#28051;?#26473;囩▼璺熷墠?#28528;鏄剧ず鎵鏈夊?#21975;?#20343;俊?#20229;鏄?#28051;?#29297;鐨?#38171;屾垜浠?#37721;渶瑕佸湪涓婇潰jsp涓?#23075;?#37716;?#37820;滅储閮?#37714;?#37928;?#28000;?#37934;?#37719;?#37721;?#38171;?#37711;?#28000;?#28051;嶇敤鏀?#37721;?#38171;屾坊鍔?#37928;?#28000;?#37934;佸涓?#38171;?/p><div class="codeText"><div class="codeHead">JavaScript浠?#37934;?/div><ol start="1" class="dp-c"> <li class="alt"><span><span class="comment">//鎶婃櫘閫?#37928;?#37826;?#37832;?#22935;?#26462;寲?#36127;鏌?#29831;?#37820;滅储鏂?#37832;?#22935;?nbsp; </span><span>  </span></span></li> <li><span>$(<span class="string">'#ss'</span><span>).searchbox({     </span></span></li> <li class="alt"><span>    <span class="comment">//瑙?#37721;戞煡璇?#27996;?#28000;?nbsp; </span><span>  </span></span></li> <li><span>    searcher:<span class="keyword">function</span><span>(value,name){ </span><span class="comment">//value琛?#32448;?#26440;?#37711;?#37928;勫?nbsp; </span><span>  </span></span></li> <li class="alt"><span>        <span class="comment">//alert(value + "," + name)  </span><span>  </span></span></li> <li><span>        <span class="comment">//鑾?#37721;栧綋?#22688;鏌?#29831;?#37928;?#37711;抽敭瀛?#38171;?#38315;?#26473;嘍ataGrid鍔?#26462;?#37929;稿簲鐨勪俊?#20229;锛屼?#36328;敤load鍔?#26462;藉拰鏄剧?#34425;涓椤?#37928;?#37813;鏈?#29723;?#37510;?nbsp; </span><span>  </span></span></li> <li class="alt"><span>        <span class="comment">//濡?#37835;滄寚瀹?#27996;?#37721;傛暟锛?#28729;冨皢鍙?#28000;?queryParams'灞炴?#37510;?#38315;氬父鍙?#28000;?#38315;?#26473;?#28028;?#38315;?#28051;浜?#37721;傛暟鎵?#29723;屼竴娆?#37836;?#29831;?#38171;?#38315;?#26473;?#29835;冪敤杩?#28051;?#37826;规硶浼氬?#25116;笂?#28528;url鎸?#28729;?#37928;刟ction鍘?#37721;?#38315;佽?#38155;眰锛?#28000;?#37832;?#37716;?#37731;?#37716;?#26462;?#37826;版暟鎹?#37510;?nbsp; </span><span>  </span></span></li> <li><span>        $(<span class="string">'#dg'</span><span>).datagrid(</span><span class="string">'load'</span><span>,{    </span></span></li> <li class="alt"><span>            type: value    </span></li> <li><span>        });    </span></li> <li class="alt"><span>    </span></li> <li><span>    },     </span></li> <li class="alt"><span>    prompt:<span class="string">'璇?#26440;?#37711;?#37820;滅储鍏抽敭瀛?</span><span>     </span></span></li> <li><span>});     </span></li></ol></div><p>銆銆load鏂规硶鍙?#28000;?#37716;?#26462;?#37828;剧?#34425;涓椤?#37928;?#37813;鏈?#29723;?#38171;?#28729;?#37832;?#28051;?#37721;傛暟锛屽鏋滄寚瀹?#27996;?#38171;屽氨浼氬幓甯?#28051;?#28052;?#37928;剄ueryParams锛?#37722;?#37714;欓粯璁?#28028;?#38315;?#28051;婇潰鐨剄ueryParams鎸?#28729;?#37928;?#37721;傛暟锛屾垜浠湪杩?#38322;屽皢type璁?#32515;垚value鐨勫?#38171;?#37719;崇敤鎴?#26440;?#37711;?#37928;勬煡璇?#37711;抽敭瀛?#38171;岀?#36346;悗浼?#37714;癮ction锛?#37722;?#37721;版?#35268;嵁?#25956;鎴?#26440;?#37711;?#37928;剉alue?#28266;?#26271;鎹?#25652;?#28051;?#37836;?#37813;?#38171;?#39582;?#26473;?#37733;?#32513;欏墠鍙?#37510;?#37813;?#29723;岀粨鏋滃涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160508104755868.png" width="600" height="239" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>銆銆杩欐牱鎴戜究瀹屾垚浜?#37820;滅储鐨?#37716;熻兘浜?#38171;屾瘮杈?#32480;鍗?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>3. DataGrid绫?#37714;?#37714;?#38340;?#37928;?#28729;?#37916;?/strong></span></p><p>銆銆鐜板湪?#22428;浠潵瀹?#37916;?#37714;?#38340;?#37716;熻兘锛?#28000;?#28051;婇潰鐨刯sp涓?#37721;?#28000;?#37930;嬪嚭锛?#37714;?#38340;ゅ墠鍒?#37826;敤鎴?#37832;夋病鏈?#38315;?#28051;?#37836;?#37833;?#29825;板綍锛屽鏋滄病鏈?#37714;?#32513;欑敤鎴?#28051;涓?#37819;愮ず锛屽鏋?#37832;?#38315;?#28051;?#38171;?#37714;?#23534;瑰嚭?#29541;鍙?#29825;╃敤鎴?#32429;?#29825;?#38171;屽鏋滀负鐪?#38171;?#37714;?#37813;?#29723;?#37714;?#38340;?#37716;熻兘銆?#37832;?#28051;?#32513;嗚妭瑕佹敞鎰?#28051;?#38171;屽鏋?#37807;?#29781;?#28051;娆?#37804;?#37714;?#38340;?#28598;氭潯璁板綍锛?#38317;?#28052;?#28051;婇潰鐨剆ingleSelect灞炴?#29781;佽缃垚false銆?/p><p>銆銆棣?#37711;?#38171;屾垜浠?#37814;?#28051;婇潰query.jsp涓?#37714;?#38340;?#38318;?#37714;?#37928;?#28000;?#37934;佽ˉ鍏?#28729;?#38171;?#29785;?#28051;嬮潰锛?/p><div class="codeText"><div class="codeHead">JavaScript浠?#37934;?/div><ol start="1" class="dp-c"> <li class="alt"><span><span>{    </span></span></li> <li><span>    iconCls: <span class="string">'icon-remove'</span><span>,    </span></span></li> <li class="alt"><span>    text:<span class="string">'鍒?#38340;?#32491;?#37714;?</span><span>,    </span></span></li> <li><span>    handler: <span class="keyword">function</span><span>(){    </span></span></li> <li class="alt"><span>        <span class="comment">//鍒?#37826;?#37828;?#37722;?#37832;?#38315;?#28051;?#29723;?#29825;板綍锛屼?#36328;敤getSelections鑾?#37721;?#38315;?#28051;?#37928;?#37813;鏈?#29723;?nbsp; </span><span>  </span></span></li> <li><span>        <span class="keyword">var</span><span> rows = $(</span><span class="string">"#dg"</span><span>).datagrid(</span><span class="string">"getSelections"</span><span>);    </span></span></li> <li class="alt"><span>        <span class="comment">//杩?#37733;?#29722;?#38315;?#28051;?#37928;勮锛屽鏋滄病鏈?#28000;?#28003;?#29723;?#29722;?#38315;?#28051;?#38171;?#37714;?#26473;?#37733;炵?#28888;暟缁?nbsp; </span><span>  </span></span></li> <li><span>        <span class="keyword">if</span><span>(rows.length == 0) {    </span></span></li> <li class="alt"><span>            <span class="comment">//寮瑰嚭鎻愮?#36720;俊?#20229;  </span><span>  </span></span></li> <li><span>            $.messager.show({ <span class="comment">//璇硶绫?#28028;?#27996;巎ava涓?#37928;?#38344;?#37804;佹?#35268;硶锛?#37929;?#37818;?#28725;硅薄璋冪敤  </span><span>  </span></span></li> <li class="alt"><span>                title:<span class="string">'閿?#29831;?#37819;愮ず'</span><span>,    </span></span></li> <li><span>                msg:<span class="string">'鑷冲皯瑕?#38315;?#37815;?#28051;鏉?#29825;板綍'</span><span>,    </span></span></li> <li class="alt"><span>                timeout:2000,    </span></li> <li><span>                showType:<span class="string">'slide'</span><span>,    </span></span></li> <li class="alt"><span>            });    </span></li> <li><span>        } <span class="keyword">else</span><span> {    </span></span></li> <li class="alt"><span>            <span class="comment">//鎻愮ず鏄?#37722;?#32429;?#29825;?#37714;?#38340;?#38171;屽鏋?#32429;?#29825;?#37714;?#37813;?#29723;?#37714;?#38340;?#37928;?#38315;?#26440;?nbsp; </span><span>  </span></span></li> <li><span>            $.messager.confirm(<span class="string">'鍒?#38340;?#37928;?#32429;?#29825;?#28725;?#29831;濇'</span><span>, </span><span class="string">'?#20557;纭?#28729;?#29781;?#37714;?#38340;?#23005;?#26916;?#37722;?#38171;?</span><span>, </span><span class="keyword">function</span><span>(r){    </span></span></li> <li class="alt"><span>                <span class="keyword">if</span><span> (r){    </span></span></li> <li><span>                    <span class="comment">//1. 浠?#38014;?#37721;栫殑璁板綍涓?#38014;?#37721;栫?#31295;簲鐨?#37928;刬d,鎷?#37818;d鐨勫?#38171;岀?#36346;悗鍙?#38315;?#37722;?#37721;?,2,3,4  </span><span>  </span></span></li> <li class="alt"><span>                    <span class="keyword">var</span><span> ids = </span><span class="string">""</span><span>;    </span></span></li> <li><span>                    <span class="keyword">for</span><span>(</span><span class="keyword">var</span><span> i = 0; i < rows.length; i ++) {    </span></span></li> <li class="alt"><span>                        ids += rows[i].id + <span class="string">","</span><span>;    </span></span></li> <li><span>                    }    </span></li> <li class="alt"><span>                    ids = ids.substr(0, ids.lastIndexOf(<span class="string">","</span><span>));    </span></span></li> <li><span>                    <span class="comment">//2. 鍙?#38315;乤jax璇锋眰  </span><span>  </span></span></li> <li class="alt"><span>                    $.post(<span class="string">"category_deleteByIds.action"</span><span>,{ids:ids},</span><span class="keyword">function</span><span>(result){    </span></span></li> <li><span>                        <span class="keyword">if</span><span>(result == </span><span class="string">"true"</span><span>) {    </span></span></li> <li class="alt"><span>                                                <span class="comment">//灏?#37714;氬垰閫?#28051;?#37928;?#29825;板綍鍒?#38340;?#38171;?#29781;?#28051;嶇劧浼氬奖鍝?#37722;庨潰?#27967;鏂?#37928;勬搷浣?nbsp; </span><span>  </span></span></li> <li><span>                                                $(<span class="string">"#dg"</span><span>).datagrid(</span><span class="string">"uncheckAll"</span><span>);    </span></span></li> <li class="alt"><span>                            <span class="comment">//鍒?#37826;板綋?#22688;椤?#38171;屾煡璇?#37928;勬?#36346;欐垜浠敤鐨?#37828;痩oad锛?#37714;?#37826;扮涓椤?#38171;宺eload鏄?#37714;?#37826;板綋?#22688;椤?nbsp; </span><span>  </span></span></li> <li><span>                            $(<span class="string">"#dg"</span><span>).datagrid(</span><span class="string">"reload"</span><span>);</span><span class="comment">//涓?#29999;?#37721;傛暟?#31919;璁や负涓婇潰鐨剄ueryParams  </span><span>  </span></span></li> <li class="alt"><span>                        } <span class="keyword">else</span><span> {    </span></span></li> <li><span>                            $.messager.show({     </span></li> <li class="alt"><span>                                title:<span class="string">'鍒?#38340;?#23534;?#29999;?</span><span>,    </span></span></li> <li><span>                                msg:<span class="string">'鍒?#38340;?#28598;辫触锛?#29831;锋鏌?#37823;?#28003;?</span><span>,    </span></span></li> <li class="alt"><span>                                timeout:2000,    </span></li> <li><span>                                showType:<span class="string">'slide'</span><span>,    </span></span></li> <li class="alt"><span>                            });    </span></li> <li><span>                        }    </span></li> <li class="alt"><span>                    },<span class="string">"text"</span><span>);    </span></span></li> <li><span>                }    </span></li> <li class="alt"><span>            });    </span></li> <li><span>        }                           </span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆濡?#37835;滅敤鎴?#38315;?#37815;?#37714;?#38340;?#38171;岄鍏堜?#27692;?#29808;嚭涓涓?#28725;?#29831;濇锛屽綋?#25956;鎴?#32429;?#28729;?#29781;?#37714;?#38340;?#37722;?#38171;屾垜浠?#26851;?#37711;?#29781;佽幏鍙栫敤鎴?#37813;?#23296;閫?#37928;勫?#21975;搧鐨刬d锛屽皢杩?#27996;沬d鎷?#37818;ユ垚涓涓?#28699;?#32471;?#28051;?#38171;岀?#36346;悗鍚戝悗鍙?#37721;?#38315;乤jax璇锋眰锛?.post涓?#37928;勭涓涓?#37721;傛暟鏄?#37721;?#38315;?#37714;伴偅涓猘ction锛岀浜屼釜鍙傛暟鏄?#37721;?#38315;?#37928;?#37721;傛暟锛岀涓?#28051;?#37721;傛暟鏄?#37733;?#29835;冨?#33445;暟锛?#37719;冲垹闄ゆ垚鍔?#37722;?#37813;?#29723;?#29831;?#37713;芥暟閲岄潰鐨?#37826;规硶锛?#29831;?#37713;芥暟鐨?#37721;傛暟result鏄?#28000;?#37722;?#37721;?#28028;?#26473;囨潵鐨?#38171;岀鍥?#28051;?#37721;傛暟鍙?#37832;?#37721;棤锛屾槸杩?#37733;炴暟鎹?#37928;?#32491;诲瀷銆傛垜浠?#38322;嶇?#22317;湅?#28229;$.post涓?#37928;勫唴瀹?#38171;屽綋鍚?#37721;?#26473;?#37733;?#28051;涓?quot;true"琛?#32448;?#37714;?#38340;ゆ垚鍔?#27996;?#38171;?#38317;?#28052;堟垜浠?#29835;冪敤DataGrid閲岄潰鐨剅eload鏂规硶閲?#37826;?#37714;?#37826;伴?#30008;潰锛宺eload?#25328;?#22688;?#28528;鏌?#29831;?#37827;剁敤鐨刲oad鏄?#28051;?#29297;鐨?#38171;屼笉鍚?#37928;?#37734;?#37826;瑰湪浜巖eload鍒?#37826;?#37722;?#37707;滅?#27407;湪?#32139;?#22688;椤甸潰锛?#38000;宭oad鍒?#37828;剧?#34425;涓椤?#37510;?/p><p>銆銆濂?#27996;?#38171;屽墠鍙伴?#30008;潰閮?#37714;嗗?#27407;ソ浜?#38171;?#37818;?#28051;嬫潵瀹屾垚鍚?#37721;?#37928;?#37929;稿簲鏂规硶锛岄鍏堝湪categoryService涓?#23075;?#37716;燿eleteByIds鏂规硶锛?#39582;跺湪鍏跺疄鐜?#32491;籧ategoryServceImpl涓?#28729;?#37916;?#29831;?#37826;规硶锛?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="comment">//categoryService鎺?#37721;?nbsp; </span><span>  </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">interface</span><span> CategoryService </span><span class="keyword">extends</span><span> BaseService<Category> {    </span></span></li> <li class="alt"><span>    <span class="comment">//鏌?#29831;?#32491;?#37714;俊?#20229;锛岀骇?#20168;绠$悊鍛?nbsp; </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type, </span><span class="keyword">int</span><span> page, </span><span class="keyword">int</span><span> size); </span><span class="comment">//浣跨敤绫?#37714;?#37928;?#37722;?#32457;版煡璇?nbsp; </span><span>  </span></span></li> <li class="alt"><span>    <span class="comment">//鏍规嵁鍏抽敭瀛楁煡璇?#37804;?#29825;板?#26335;暟  </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> Long getCount(String type);    </span></span></li> <li class="alt"><span>    <span class="comment">//鏍规嵁ids鍒?#38340;?#28598;氭潯璁板綍  </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> deleteByIds(String ids);    </span></span></li> <li class="alt"><span>}    </span></li> <li><span>    </span></li> <li class="alt"><span><span class="comment">//categoryServiceImpl瀹?#37916;?#32491;?nbsp; </span><span>  </span></span></li> <li><span><span class="annotation">@SuppressWarnings</span><span>(</span><span class="string">"unchecked"</span><span>)    </span></span></li> <li class="alt"><span><span class="annotation">@Service</span><span>(</span><span class="string">"categoryService"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImpl </span><span class="keyword">extends</span><span> BaseServiceImpl<Category> </span><span class="keyword">implements</span><span> CategoryService {    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="comment">//鍏?#28000;?#37826;规硶鐪佺暐涓嶅啓浜?hellip;…鍙?#28000;?#37721;傜収?#22688;?#28528;鐨?#37929;稿簲绔犺?#20634;唴瀹?nbsp; </span><span>  </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> deleteByIds(String ids) {    </span></span></li> <li><span>        String hql = <span class="string">"delete from Category c where c.id in ("</span><span> + ids + </span><span class="string">")"</span><span>;    </span></span></li> <li class="alt"><span>        getSession().createQuery(hql).executeUpdate();    </span></li> <li><span>    }    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆鍐欏ソ浜哠ervice閮?#37714;?#38171;?#37818;?#28051;嬫潵?#32017;濮嬪啓Action閮?#37714;?#27996;?#37510;?#37733;犱负?#22428;浠?#29781;佽幏鍙栧墠鍙?#28028;?#26473;涙潵鐨刬ds?#26271;鎹?#38171;?#37813;浠ュ湪action涓?#23536;?#37832;?#28051;涓?#28729;?#37916;?#27996;唃et?#25328;set鏂规硶鐨?#37721;?#38322;忔潵鎺?#37824;?#26473;?#28051;暟鎹?#38171;?#37721;?#28598;?#38171;屾垜浠?#29781;佸皢缁?#37835;?#28028;?#32513;欏墠鍙?#38171;屽墠?#28528;绔犺妭涓垜浠?#37707;氱骇?#20168;鏌?#29831;?#37928;勬?#36346;?#38171;屼?#36328;敤鐨?#37826;规硶鏄痵truts鎶?#37836;?#29831;?#37928;勭粨鏋滄暟鎹?#37813;撳寘?#22426;json鏍?#23534;?#28028;?#32513;欏墠鍙?#38171;?#37813;浠ラ渶瑕?#28051;涓狹ap锛岀?#36346;悗灏?#38315;?#26473;?#38320;?#32515;?#37826;?#28000;?#28051;?#37928;?#38320;?#32515;?#38171;屽皢Map杞?#37817;㈡垚json鏍?#23534;?#37510;?#26473;?#38322;屾垜浠?#28028;?#37714;板墠鍙?#37928;勬暟鎹瘮杈?#32480;鍗?#38171;?#37711;?#38002;?#37714;?#38340;ゆ垚鍔熸垜浠?#28028;犱竴涓?quot;true"鍗?#37721;?#38171;?#37813;浠?#28051;嶇敤鎵撳寘?#22426;json鏍?#23534;?#38171;屾垜浠?#38315;?#26473;囨祦鐨?#37826;规硶鍘?#28028;?#38315;?#38171;?#38316;撶悊?#25328;?#22688;?#28528;鐨勪竴?#29297;锛岄?#26667;?#21578;垜浠?#23536;?#37832;?#28051;涓祦鐨勫?#30789;薄鍘?#28103;濆瓨杩?#28051;?quot;true"鐨勫?#26948;妭锛岀?#36346;悗閫?#26473;?#38320;?#32515;?#38171;屽皢杩?#28051;?#28725;硅薄閫?#26473;囨祦浼?#37714;板墠鍙?#37510;?#26473;?#28051;?#28051;?#28725;硅薄?#22428;浠?#26473;?#37828;?#37712;欏湪BaseAction涓?#38171;屽涓?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"baseAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> BaseAction<T> </span><span class="keyword">extends</span><span> ActionSupport </span><span class="keyword">implements</span><span> RequestAware,SessionAware,ApplicationAware,ModelDriven<T> {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="comment">//鑾?#37721;?#29781;?#37714;?#38340;?#37928;刬ds锛?#29781;佹湁get?#25328;set鏂规硶  </span><span>  </span></span></li> <li><span>    <span class="comment">//娴佹槸?#25956;?#28533;鎯冲墠鍙?#26473;?#37733;炴暟鎹?#37928;?#38171;?#26473;?#28051;暟鎹?#37828;?#29825;﹕truts鑾?#37721;栫殑锛岀?#36346;悗閫?#26473;囨祦鐨勫舰寮?#28028;?#37714;板墠鍙?#38171;?#37813;浠?#28729;?#37916;癵et鏂规硶鍗?#37721;?nbsp; </span><span>  </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> String ids;    </span></span></li> <li><span>    <span class="keyword">protected</span><span> InputStream inputStream;    </span></span></li> <li class="alt"><span>            </span></li> <li><span>        <span class="comment">//涓嬮潰鐪佺暐……  </span><span>  </span></span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆瀵瑰簲鐨凜ategoryAction涓?#37928;?#37826;规硶濡?#28051;?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"categoryAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryAction </span><span class="keyword">extends</span><span> BaseAction<Category> {    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="keyword">public</span><span> String queryJoinAccount() {    </span></span></li> <li><span>                <span class="comment">//?#26256;……  </span><span>  </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="keyword">public</span><span> String deleteByIds() {    </span></span></li> <li><span>        System.out.println(ids);    </span></li> <li class="alt"><span>        categoryService.deleteByIds(ids);    </span></li> <li><span>        <span class="comment">//濡?#37835;?#37714;?#38340;ゆ垚鍔?#28751;?#28028;氬線涓?#37813;?#29723;?#38171;屾垜浠?#28751;?quot;true"浠ユ祦鐨勫舰寮?#28028;?#32513;欏墠鍙?nbsp; </span><span>  </span></span></li> <li class="alt"><span>        inputStream = <span class="keyword">new</span><span> ByteArrayInputStream(</span><span class="string">"true"</span><span>.getBytes()); </span><span class="comment">//灏?quot;true"鐨勫?#26948;?#20634;瓨鍒版祦inputStream涓?nbsp; </span><span>  </span></span></li> <li><span>        <span class="keyword">return</span><span> </span><span class="string">"stream"</span><span>;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆鎺?#28051;嬫潵?#28229;struts.xml涓?#37929;稿簲鐨?#38320;?#32515;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span class="tag-name">struts</span><span class="tag">></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">constant</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"struts.devMode"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"true"</span><span> </span><span class="tag">/></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">package</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"shop"</span><span> </span><span class="attribute">extends</span><span>=</span><span class="attribute-value">"json-default"</span><span class="tag">></span><span class="comments"><!-- jason-default缁?#37813;?#27996;唖truts-default --></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">global-results</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"aindex"</span><span class="tag">></span><span>/WEB-INF/main/aindex.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">global-results</span><span class="tag">></span><span>    </span></span></li> <li><span>    </span></li> <li class="alt"><span>        <span class="comments"><!-- class瀵瑰簲鐨?#37828;疭pring涓?#38320;?#32515;?#29831;ction鐨刬d鍊?#38171;?#37733;犱负瑕?#27996;?#32513;橲pring绠$悊 --></span><span>    </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"category_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"categoryAction"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"{1}"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"jsonMap"</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"json"</span><span class="tag">></span><span>    </span></span></li> <li><span>                <span class="comments"><!-- ?#26256; --></span><span>    </span></span></li> <li class="alt"><span>            <span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"stream"</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"stream"</span><span class="tag">></span><span> </span><span class="comments"><!-- 浠tream鐨勫舰寮?#38171;宼ype?#36127;stream --></span><span>    </span></span></li> <li class="alt"><span>                <span class="tag"><</span><span class="tag-name">param</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"inputName"</span><span class="tag">></span><span>inputStream</span><span class="tag"></</span><span class="tag-name">param</span><span class="tag">></span><span> </span><span class="comments"><!-- imputStream涓?#37832;?#29781;?#28028;?#37928;勬暟鎹?nbsp;--></span><span>    </span></span></li> <li><span>             <span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li><span>            </span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"account_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"accountAction"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"{1}"</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"index"</span><span class="tag">></span><span>/index.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li><span>            </span></li> <li class="alt"><span>        <span class="comments"><!-- ?#25956;?#28533;瀹屾垚绯荤粺 璇锋眰杞?#37721;?#37928;刟ction,鎵鏈?#37928;?#29831;锋眰閮?#27996;?#32513;檈xecute--></span><span>    </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"send_*_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"sendAction"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"send"</span><span class="tag">></span><span>/WEB-INF/{1}/{2}.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">package</span><span class="tag">></span><span>    </span></span></li> <li><span>    </span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">struts</span><span class="tag">></span><span>   </span></span></li></ol></div><p>銆銆杩欐牱?#22428;浠?#28751;卞?#27692;ソ浜?#37714;?#38340;?#37928;勬搷浣?#27996;?#38171;岀湅涓涓嬫?#22559;灉锛?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160508150956670.png" width="600" height="260" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160508151059629.png" style="text-align: start;" width="600" height="231" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氭煡璇㈠拰鍒?#38340;?#37727;嗗搧绫?#37714;?#37716;熻兘鐨?#28729;?#37916;? /></p><p>銆銆娴?#29831;曟垚鍔?#38171;屾垜浠?#28052;?#37721;?#28000;?#28051;娆?#37804;?#38315;?#37815;?#28598;氶」鍘?#37714;?#38340;?#38171;?#38007;虫锛?#37714;?#38340;?#37716;熻兘鍋氬畬浜?#37510;?/p>]]></description><category>?#33931;浠跺紑鍙?/category><comments>http://www.ojizl5.fun/software/768.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=768</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=768&key=f8b5b906</trackback:ping></item><item><title>SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/software/767.html</link><pubDate>Wed, 27 Sep 2017 09:12:47 +0800</pubDate><guid>http://www.ojizl5.fun/software/767.html</guid><description><![CDATA[<p>銆銆涓?#28051;鑺傛垜浠?#28729;屾垚浜咲ataGrid鏄剧?#31744;ason?#26271;鎹?#38171;屼絾鏄?#23052;?#37832;夊拰鍚?#37721;拌仈绯诲湪涓璧?#38171;?#37721;?#37828;?#37719;?#32510;?#37734;版?#21095;ず浜嗘垜浠嚜宸?#23534;?#37928;刯son?#26271;鎹?#38171;?#26473;?#28051;鑺傛垜浠?#28751;唈son?#25328;Struts2鏁?#37722;?#38171;?#37813;?#38315;欵asyUI?#25328;Struts2涔嬮棿鐨?#27996;?#27996;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>1. json鐜?#28583;?#37928;?#37820;缓</strong></span></p><p>銆銆json鐜?#28583;?#37820;缓寰?#32480;鍗?#38171;屽鍏son鐨刯ar?#23512;鍗?#37721;?#38171;屽涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160506215356091.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚? /></p><p>銆銆锛堟敞锛歫son-lib-2.4鐨刯ar?#23512;涓?#26462;?#37734;板潃锛?a rel="nofollow" href="http://download.csdn.net/detail/eson_15/9514985" target="_blank">http://download.csdn.net/detail/eson_15/9514985</a> 锛?/p><p>銆銆<span style="font-size: medium;"><strong>2. 瀹屽?#20953;ction</strong></span></p><p>銆銆?#28266;DataGrid鎺?#28000;?#28051;?#37832;?#28051;?#28766;炴?#37828;痷rl锛?#37721;?#28000;?#37816;?#28729;?#29831;锋眰?#26271;鎹?#37928;剈rl鍦板潃锛屽湪涓?#28051;鑺傛垜浠?#28751;?#26473;?#28051;?#37734;板潃鐩?#37818;?#29825;?#32515;垚浜?#28051;涓?#37711;?#28003;?#37928;刯son鏂?#28000;?#38171;?#26473;?#38322;屾垜浠?#28751;?#26473;?#28051;猽rl璁?#32515;垚涓涓猘ction锛屽url:'category_queryJoinAccount.action',琛?#32448;轰?#27692;幓璇锋眰categoryAction鐨剄ueryJoinAccount鏂规硶锛堟枃绔?#37832;鍚?#28028;?#32513;欏嚭query.jsp鐨?#28000;?#37934;?#38171;?#37510;?#37813;浠ユ垜浠渶瑕佸幓瀹屾垚categoryAction涓?#37928;剄ueryJoinAccount鏂规硶銆?/p><p>銆銆?#28266;Struts2?#25328;json鏁?#37722;堝墠锛屾垜浠?#37711;堢湅涓涓?#28052;嬪墠鏄剧ず涓娆son?#26271;鎹?#38318;?#37721;?#27996;嗗摢浜?#29831;锋眰锛?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160507000025532.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚? /></p><p>銆銆鍥犱负type鏄疌ategory绫?#37928;勪竴涓?#28766;炴?#38171;屾垜浠湪BaseAction涓?#23480;茬粡瀹?#37916;?#27996;哅odelDriven<Category>鎺?#37721;?#38171;?#37813;浠?#26473;?#28051;猼ype浼氳灏佽鍒癿odel涓?#38171;屾垜浠?#28051;嶉渶瑕?#32480;?#28729;?#38171;?#37721;?#28000;?#38315;?#26473;噈odel?#28533;鑾?#37721;?#38171;屼絾鏄疎asyUI?#22172;鍔?#37721;?#26473;囨潵鐨刾age?#25328;rows鍙傛暟?#22428;浠渶瑕佽嚜宸?#38014;?#37721;?#27996;?#38171;?#37813;浠ユ垜浠?#37721;?#28000;ュ湪BaseModel涓?#28583;?#37716;犱袱涓垚鍛?#37721;?#38322;弍age?#25328;rows骞跺疄鐜癵et?#25328;set鏂规硶锛?#37832;鍚?#26473;?#29781;佽?#38095;戜竴鐐?#38171;?#26473;?#27996;?#37721;傛暟閮借?#23792;緱浜?#37722;?#38171;屾垜浠?#37837;规嵁杩?#27996;?#37721;傛暟鍘绘暟鎹?#25652;?#28051;?#37836;?#29831;㈡暟鎹?#38171;?#38317;?#28052;堟垜浠?#37836;ュ嚭?#28533;鐨勬暟鎹?#37824;?#37714;板摢鍛?#38171;熻屼笖杩?#29781;佹?#25779;寘?#22426;json鏍?#23534;?#37721;戝?#26495;墠鍙?#37813;嶈兘琚獶ataGrid鏄剧ず銆傛垜浠?#37711;?#28051;嶈?#38095;戝皢鏌?#29831;?#37714;?#37928;勬暟鎹?#28641;?#28003;?#37813;撳寘?#22426;json鏍?#23534;?#38171;屾垜浠?#37711;?#38000;?#38095;戞妸杩?#27996;涙暟鎹?#37824;?#37714;?#28051;涓?#37734;?#37826;?#38171;屽?#22563;嚜?#21159;鐨?#37807;冲埌浜?#28003;跨敤Map锛?#37733;犱负json鏍?#23534;?#37928;勬暟鎹?#28751;?#37828;痥ey-value褰?#23534;?#37928;?#37510;?#37807;冲埌杩?#38322;?#38171;屾垜浠?#32513;?#32513;?#28729;屽杽BaseAction锛?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"baseAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> BaseAction<T> </span><span class="keyword">extends</span><span> ActionSupport </span><span class="keyword">implements</span><span> RequestAware,SessionAware,ApplicationAware,ModelDriven<T> {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="comment">//page?#25328;rows?#25328;鍒?#26916;?#37832;?#37711;?#38171;宲ageMap瀛樻?#28844;煡璇?#37928;勬暟鎹?#38171;岀?#36346;悗鎵撳寘?#22426;json鏍?#23534;忕敤鐨?nbsp; </span><span>  </span></span></li> <li><span>    <span class="comment">//page?#25328;rows瀹?#37916;癵et?#25328;set鏂规硶锛宲ageMap鍙渶瑕?#28729;?#37916;癵et鏂规硶鍗?#37721;?#38171;?#37733;犱负pageMap涓?#37828;?#37818;?#37824;跺墠鍙?#37721;傛暟鐨?#38171;屾槸璁﹕truts鑾?#37721;栫殑  </span><span>  </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> Integer page;    </span></span></li> <li><span>    <span class="keyword">protected</span><span> Integer rows;    </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> Map<String, Object> pageMap = </span><span class="keyword">null</span><span>;</span><span class="comment">//璁?#28051;?#37722;?#37928;凙ction?#22172;宸?#37720;?#28729;?#37916;?nbsp; </span><span>  </span></span></li> <li><span>        <span class="comment">//鐪佺暐get?#25328;set鏂规硶……  </span><span>  </span></span></li> <li class="alt"><span>        </span></li> <li><span>    <span class="comment">/******************* 涓嬮潰杩?#37828;?#37720;熸潵BaseAction閮?#37714;?nbsp;*************************/</span><span>    </span></span></li> <li class="alt"><span>    <span class="comment">//service瀵硅薄  </span><span>  </span></span></li> <li><span>    <span class="annotation">@Resource</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> CategoryService categoryService;    </span></span></li> <li><span>    <span class="annotation">@Resource</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> AccountService accountService;    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="comment">//鍩熷?#30789;薄  </span><span>  </span></span></li> <li><span>    <span class="keyword">protected</span><span> Map<String, Object> request;    </span></span></li> <li class="alt"><span>    <span class="keyword">protected</span><span> Map<String, Object> session;    </span></span></li> <li><span>    <span class="keyword">protected</span><span> Map<String, Object> application;    </span></span></li> <li class="alt"><span>            </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setApplication(Map<String, Object> application) {    </span></span></li> <li><span>        <span class="keyword">this</span><span>.application = application;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setSession(Map<String, Object> session) {    </span></span></li> <li><span>        <span class="keyword">this</span><span>.session = session;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setRequest(Map<String, Object> request) {    </span></span></li> <li><span>        <span class="keyword">this</span><span>.request = request;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="comment">//ModelDriven  </span><span>  </span></span></li> <li><span>    <span class="keyword">protected</span><span> T model;    </span></span></li> <li class="alt"><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li><span>    <span class="keyword">public</span><span> T getModel() {    </span></span></li> <li class="alt"><span>        ParameterizedType type = (ParameterizedType)<span class="keyword">this</span><span>.getClass().getGenericSuperclass();    </span></span></li> <li><span>        Class clazz = (Class)type.getActualTypeArguments()[<span class="number">0</span><span>];    </span></span></li> <li class="alt"><span>        <span class="keyword">try</span><span> {    </span></span></li> <li><span>            model = (T)clazz.newInstance();    </span></li> <li class="alt"><span>        } <span class="keyword">catch</span><span> (Exception e) {    </span></span></li> <li><span>            <span class="keyword">throw</span><span> </span><span class="keyword">new</span><span> RuntimeException(e);    </span></span></li> <li class="alt"><span>        }       </span></li> <li><span>        <span class="keyword">return</span><span> model;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆濂?#38171;?#28729;屽杽浜咮aseCategory鍚?#38171;屾垜浠?#37721;?#28000;?#37712;檆ategoryAction涓?#37928;剄ueryJoinAccount鏂规硶浜?#38171;屾垜浠?#28751;哻ategoryAction涓?#37720;熸潵鐨?#37826;规硶鍏?#37714;?#37818;?#38171;?#37733;犱负閭?#27996;?#38318;?#37828;?#28052;嬪墠鎼缓鐜?#28583;?#37827;跺欐祴璇曠敤鐨?#38171;?#38318;?#28051;嶇敤浜?#38171;?#37916;板湪鐪?#23005;e紑濮嬮」鐩?#28000;?#37934;?#27996;?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Controller</span><span>(</span><span class="string">"categoryAction"</span><span>)    </span></span></li> <li><span><span class="annotation">@Scope</span><span>(</span><span class="string">"prototype"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryAction </span><span class="keyword">extends</span><span> BaseAction<Category> {    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="keyword">public</span><span> String queryJoinAccount() {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>        <span class="comment">//?#25956;?#28533;瀛樺偍鍒?#26916;?#37928;勬暟鎹?nbsp; </span><span>  </span></span></li> <li><span>        pageMap = <span class="keyword">new</span><span> HashMap<String, Object>();    </span></span></li> <li class="alt"><span>            </span></li> <li><span>        <span class="comment">//鏍规嵁鍏抽敭瀛楀拰鍒?#26916;?#37928;?#37721;傛暟鏌?#29831;?#37929;稿簲鐨勬暟鎹?#37510;?#26473;?#28051;?#37826;规?#26335;垜浠湪Service涓?#37712;?#26473;?#27996;?#38171;屽綋鏃跺?#23678;垚绾ц仈鏌?#29831;?nbsp; </span><span>  </span></span></li> <li class="alt"><span>        List<Category> categoryList = categoryService.queryJoinAccount(model.getType(), page, rows);    </span></li> <li><span>        pageMap.put(<span class="string">"rows"</span><span>, categoryList); </span><span class="comment">//瀛樺偍?#36127;JSON鏍?#23534;?#38171;?#28000;?#28051;?#28051;?#22957;鐨刯son鏂?#28000;跺彲浠?#37930;嬪嚭锛屼竴涓猭ey鏄痶otal,涓涓猭ey鏄痳ows锛?#26473;?#38322;?#37711;堟妸rows瀛樻?#24807;ソ  </span><span>  </span></span></li> <li class="alt"><span>        <span class="comment">//鏍规嵁鍏抽敭瀛楁煡璇?#37804;?#29825;板?#26335;暟  </span><span>  </span></span></li> <li><span>        Long total = categoryService.getCount(model.getType()); <span class="comment">//杩?#28051;?#37826;规?#26335;病鍐?#38171;屾垜浠?#32475;?#28028;氬効鍘籗ervice灞?#28729;屽?#21226;竴涓?nbsp; </span><span>  </span></span></li> <li class="alt"><span><span class="comment">//      System.out.println(total);  </span><span>  </span></span></li> <li><span>        pageMap.put(<span class="string">"total"</span><span>, total); </span><span class="comment">//瀛樺偍?#36127;JSON鏍?#23534;?#38171;屽?#23942;妸total瀛樻?#24807;ソ  </span><span>  </span></span></li> <li class="alt"><span>    </span></li> <li><span>        <span class="keyword">return</span><span> </span><span class="string">"jsonMap"</span><span>;    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆杩欐牱Action?#22428;浠?#28751;卞?#27407;ソ浜?#38171;?#37916;板湪Action鎷?#37714;板墠鍙?#28028;犳潵鐨?#37721;傛暟锛岀?#36346;悗鏍规嵁鍙傛暟鏌?#29831;?#27996;?#37816;?#28729;歵ype鐨勬?#29825;板?#26335;暟锛?#28000;?#37721;?#37816;?#28729;歵ype鐨?#37813;鏈夊?#21975;搧锛?#39582;?#28051;?#37816;夌収json涓?#37816;?#28729;?#37928;刱ey锛?#37719;硉otal?#25328;rows锛?#26473;?#29723;屽?#27195;斁锛屾?#24807;湪HashMap涓?#27996;?#38171;屼箣鍚?#37721;?#29781;佸皢杩?#28051;狧ashMap涓?#37928;勬暟鎹?#37813;撳寘?#22426;json鏍?#23534;?#37721;?#38315;?#37714;板墠鍙?#28751;?#37721;?#28000;?#29722;獶ataGrid鏄剧ず浜?#37510;傛垜浠?#37711;堟妸杩?#28051;狧ashMap鏀?#26473;?#38171;?#37711;?#37720;?#28729;屽杽浜哠ervice灞?#37928;?#28000;?#37934;?#37722;?#38171;屽?#23942;潵鎵撳寘杩?#28051;狧ashMap涓?#37928;勬暟鎹?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>3. 瀹屽杽categoryService</strong></span></p><p>銆銆浠?#28051;婇潰鐨刢ategoryAction涓?#37721;煡锛岄渶瑕佸湪categoryService涓?#28583;?#37716;犱竴涓猤etCount鏂规硶锛?#39582;?#28051;?#29781;佸湪鍏?#28003;?#28729;?#37916;?#32491;?#28051;?#28729;?#37916;板ソ锛?#28729;?#37916;板涓?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="comment">//CategoryService鎺?#37721;?nbsp; </span><span>  </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">interface</span><span> CategoryService </span><span class="keyword">extends</span><span> BaseService<Category> {    </span></span></li> <li class="alt"><span>    <span class="comment">//鏌?#29831;?#32491;?#37714;俊?#20229;锛岀骇?#20168;绠$悊鍛?nbsp; </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type, </span><span class="keyword">int</span><span> page, </span><span class="keyword">int</span><span> size); </span><span class="comment">//浣跨敤绫?#37714;?#37928;?#37722;?#32457;版煡璇?nbsp; </span><span>  </span></span></li> <li class="alt"><span>    <span class="comment">//鏍规嵁鍏抽敭瀛楁煡璇?#37804;?#29825;板?#26335;暟  </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> Long getCount(String type);    </span></span></li> <li class="alt"><span>}    </span></li> <li><span>    </span></li> <li class="alt"><span><span class="comment">//CategoryServiceImpl瀹?#37916;?#32491;?nbsp; </span><span>  </span></span></li> <li><span><span class="annotation">@SuppressWarnings</span><span>(</span><span class="string">"unchecked"</span><span>)    </span></span></li> <li class="alt"><span><span class="annotation">@Service</span><span>(</span><span class="string">"categoryService"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImpl </span><span class="keyword">extends</span><span> BaseServiceImpl<Category> </span><span class="keyword">implements</span><span> CategoryService {    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type, </span><span class="keyword">int</span><span> page, </span><span class="keyword">int</span><span> size) {    </span></span></li> <li><span>        String hql = <span class="string">"from Category c left join fetch c.account where c.type like :type"</span><span>;    </span></span></li> <li class="alt"><span>        <span class="keyword">return</span><span> getSession().createQuery(hql)    </span></span></li> <li><span>                .setString(<span class="string">"type"</span><span>, </span><span class="string">"%"</span><span> + type + </span><span class="string">"%"</span><span>)    </span></span></li> <li class="alt"><span>                .setFirstResult((page-<span class="number">1</span><span>) * size) </span><span class="comment">//浠庣鍑犱釜?#32017;濮嬫?#21095;ず  </span><span>  </span></span></li> <li><span>                .setMaxResults(size) <span class="comment">//鏄剧ず鍑犱釜  </span><span>  </span></span></li> <li class="alt"><span>                .list();    </span></li> <li><span>    }    </span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> Long getCount(String type) {    </span></span></li> <li><span>        String hql = <span class="string">"select count(c) from Category c where c.type like :type"</span><span>;    </span></span></li> <li class="alt"><span>        <span class="keyword">return</span><span> (Long) getSession().createQuery(hql)    </span></span></li> <li><span>            .setString(<span class="string">"type"</span><span>, </span><span class="string">"%"</span><span> + type + </span><span class="string">"%"</span><span>)    </span></span></li> <li class="alt"><span>            .uniqueResult(); <span class="comment">//杩?#37733;?#28051;鏉?#29825;板綍:鎬?#29825;板?#26335;暟  </span><span>  </span></span></li> <li><span>    }    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆鍒?#37916;板湪?#36127;姝?#38171;?#26473;?#28051;暟鎹?#25652;?#28051;暟鎹?#37928;勮幏鍙?#26473;?#37833;?#29882;?#28751;?#37813;?#38315;?#27996;?#38171;屽墠?#28528;涓?#23005;?#28729;屾垚浜?#28000;庡墠鍙?->?#26271;鎹?#25652;?->鍙栨暟鎹?#38171;?#37818;?#28051;嬫潵灏卞紑濮?#37813;撳寘HashMap涓?#28699;樻斁鐨勬暟鎹?#38171;岀?#36346;悗鍙戠粰?#22688;鍙?#27996;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>4. 閰?#32515;畇truts.xml</strong></span></p><p>銆銆?#28266;struts.xml涓?#38315;?#26473;?#38320;?#32515;?#28751;?#37721;?#28000;?#28729;屾垚瀵?#37816;?#28729;氭暟鎹?#37928;?#37813;撳寘锛屾垜浠?#37711;堢湅涓涓媠truts.xml涓?#37928;?#38320;?#32515;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span class="tag-name">struts</span><span class="tag">></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">constant</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"struts.devMode"</span><span> </span><span class="attribute">value</span><span>=</span><span class="attribute-value">"true"</span><span> </span><span class="tag">/></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">package</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"shop"</span><span> </span><span class="attribute">extends</span><span>=</span><span class="attribute-value">"json-default"</span><span class="tag">></span><span class="comments"><!-- jason-default缁?#37813;?#27996;唖truts-default --></span><span>    </span></span></li> <li><span>        </span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">global-results</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"aindex"</span><span class="tag">></span><span>/WEB-INF/main/aindex.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">global-results</span><span class="tag">></span><span>    </span></span></li> <li><span>    </span></li> <li class="alt"><span>        <span class="comments"><!-- class瀵瑰簲鐨?#37828;疭pring涓?#38320;?#32515;?#29831;ction鐨刬d鍊?#38171;?#37733;犱负瑕?#27996;?#32513;橲pring绠$悊 --></span><span>    </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"category_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"categoryAction"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"{1}"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="comments"><!-- 蹇呴』瑕?#37711;堟坊鍔爅son?#23512;锛岀?#36346;悗涓婇潰缁?#37813;縥son-default --></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"jsonMap"</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"json"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                <span class="comments"><!-- 瑕佽浆鎹㈡垚json瀵硅薄鐨勬暟鎹?nbsp;--></span><span>    </span></span></li> <li><span>                <span class="tag"><</span><span class="tag-name">param</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"root"</span><span class="tag">></span><span>pageMap</span><span class="tag"></</span><span class="tag-name">param</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                <!-- 閰?#32515;?#27035;戝悕鍗?#38171;?#26473;囨护涓嶉渶瑕?#37928;?#38315;?#26916;?nbsp;锛屾敮鎸佹鍒?#29723;?#26440;?#23534;?nbsp;   </span></li> <li><span>                json鏍?#23534;?#38171;歿total:3,rows:[{account:{id:2,login:"user",name:"瀹?#37832;岮",pass:"user"},hot:true,id:3,…}]}    </span></li> <li class="alt"><span>                --<span class="tag">></span><span>    </span></span></li> <li><span>                <span class="tag"><</span><span class="tag-name">param</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"excludeProperties"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                    <span class="comments"><!-- rows[0].account.pass--></span><span>    </span></span></li> <li><span>                                        <span class="comments"><!-- 杩?#38322;屾?#21095;ず涓?#27996;?#23005;?#37714;?#29723;?#26440;?#23534;?#38171;?nbsp;CSDN鐨勪竴涓猙ug锛屾垜鎺?#28051;?#37733;?#37824;?#28051;嬮潰 --></span><span>    </span></span></li> <li class="alt"><span>                <span class="tag"></</span><span class="tag-name">param</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li><span>            </span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"account_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"accountAction"</span><span> </span><span class="attribute">method</span><span>=</span><span class="attribute-value">"{1}"</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"index"</span><span class="tag">></span><span>/index.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li><span>            </span></li> <li class="alt"><span>        <span class="comments"><!-- ?#25956;?#28533;瀹屾垚绯荤粺 璇锋眰杞?#37721;?#37928;刟ction,鎵鏈?#37928;?#29831;锋眰閮?#27996;?#32513;檈xecute--></span><span>    </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">action</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"send_*_*"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"sendAction"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">result</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"send"</span><span class="tag">></span><span>/WEB-INF/{1}/{2}.jsp</span><span class="tag"></</span><span class="tag-name">result</span><span class="tag">></span><span>    </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">action</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">package</span><span class="tag">></span><span>    </span></span></li> <li><span>    </span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">struts</span><span class="tag">></span><span>    </span></span></li></ol></div><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160506235402701.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚? /></p><p>銆銆浠?#28051;婇潰鐨?#38320;?#32515;?#37721;?#28000;?#37930;嬪嚭锛岄鍏坧ackage瑕?#32513;?#37813;縥son-default锛?#37733;犱负json-default缁?#37813;?#27996;唖truts-default锛?#37733;犱负?#28266;json鐨刯ar?#23512;閲?#37832;?#28051;猻truts2-json-plugin-2.3.24.1.jar锛?#37813;撳紑鍗?#37721;?#37930;嬪?#20276;噷?#28528;鏈?#28051;猻truts-plugin.xml锛?#37813;撳紑鍗?#37721;?#37930;嬪埌json-default鏄?#32513;?#37813;?#27996;唖truts-default锛?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160507000224276.png" width="600" height="369" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚? /></p><p>銆銆鎺?#28051;嬫潵?#22428;閰?#32515;?lt;result>锛宯ame鏄?#37714;氬垰action杩?#37733;?#37928;勫瓧绗?#28051;?#38171;宼ype涓瀹?#29781;?#38320;嶆垚json銆傜?#36346;悗灏?#37828;痳esult涓?#37928;?#37721;傛暟浜?#38171;岄鍏?#36423;呴』瑕?#38320;?#37928;?#28751;?#37828;痭ame?#36127;root鐨?#37721;傛暟锛?#26473;?#28051;?#37721;傛暟瑕?#38320;嶆垚鍒氬?#27702;渶瑕佽浆鎹?#37928;凥ashMap瀵硅薄锛?#37719;虫垜浠?#28729;?#28052;?#37928;刾ageMap锛?#37832;?#27996;?#26473;?#28051;?#37721;傛暟鐨?#38320;?#32515;?#38171;宻truts鎵?#28028;氬皢pageMap涓?#37928;勬暟鎹?#37813;撳寘?#22426;json鏍?#23534;?#37510;傜?#36346;悗灏?#37828;?#38320;?#32515;?#27035;戝悕鍗?#38171;岄?#25117;悕鍗?#37928;勬?#24532;?#28751;?#37828;?#37723;?#29831;塻truts?#28266;鎵撳寘鐨勬?#36346;?#38171;屽摢浜涘?#26945;涓嶉渶瑕佹?#25779;寘锛屾瘮濡傜?#24714;鍛樺瘑鐮?#28052;?#32491;?#37928;勪俊?#20229;锛岀敱涓婇潰?#25950;閲?#28051;?#37928;刯ason鏍?#23534;?#37721;?#28000;?#37930;嬪嚭rows[0].account.pass琛?#32448;?#28725;?#37934;佸?#26945;锛屼絾鏄暟鎹?#38002;?#28729;?#28051;?#23005;?#28051;鏉?#38171;?#37813;浠ユ垜浠?#23536;楃敤姝?#37714;?#29723;?#26440;?#23534;忔潵琛?#32448;?#38171;?#26473;欐牱鎵鏈夊瘑鐮?#38318;?#28051;?#28028;氳鎵撳寘鍒癹son涓?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>5. 淇?#37824;筿uery.jsp鍐?#28729;?/strong></span></p><p>銆銆鍒版锛屾垜浠?#23480;茬粡灏嗘暟鎹?#37813;撳寘?#22426;浜唈son鏍?#23534;?#27996;?#38171;?#37818;?#28051;嬫潵?#22428;浠?#28729;屽?#21226;竴涓嬪墠鍙皅uery.jsp鐨勫唴瀹?#28751;?#37721;?#28000;?#29825;〥ataGrid姝?#32429;?#37828;剧ず浜?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>    </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        $(function(){    </span></li> <li><span>            $('#dg').datagrid({       </span></li> <li class="alt"><span>                //url鍦板潃鏀逛负璇锋眰categoryAction    </span></li> <li><span>                url:'category_queryJoinAccount.action',    </span></li> <li class="alt"><span>                loadMsg:'Loading......',    </span></li> <li><span>                queryParams:{type:''},//type鍙傛暟锛?#26473;?#38322;屼笉?#28214;瑕?#28028;?#37711;?#28003;?#37928;則ype锛?#37733;犱负?#22428;浠?#29781;佹?#21095;ず鎵鏈?#37928;?nbsp;   </span></li> <li class="alt"><span>                //width:300,    </span></li> <li><span>                fitColumns:true,    </span></li> <li class="alt"><span>                striped:true,    </span></li> <li><span>                nowrap:true,    </span></li> <li class="alt"><span>                singleSelect:true,    </span></li> <li><span>                pagination:true,    </span></li> <li class="alt"><span>                rowStyler: function(index,row){    </span></li> <li><span>                    console.info("index" + index + "," + row)    </span></li> <li class="alt"><span>                    if(index % <span class="attribute">2</span><span> == 0) {    </span></span></li> <li><span>                        return 'background-color:#fff;';    </span></li> <li class="alt"><span>                    } else {    </span></li> <li><span>                        return 'background-color:#ff0;';    </span></li> <li class="alt"><span>                    }    </span></li> <li><span>                        </span></li> <li class="alt"><span>                },          </span></li> <li><span>                frozenColumns:[[    </span></li> <li class="alt"><span>                    {field:'checkbox',checkbox:true},    </span></li> <li><span>                    {field:'id',title:'缂?#37721;?,width:200}    //杩?#38322;?#37928;刦ield瀛楁瑕佸拰json?#26271;鎹?#28051;?#37928;勪竴?#29297;                 </span></li> <li class="alt"><span>                ]],    </span></li> <li><span>                columns:[[                         </span></li> <li class="alt"><span>                    {field:'type',title:'绫?#37714;?#37722;?#32457;?,width:100, //瀛楁type    </span></li> <li><span>                        formatter: function(value,row,index){    </span></li> <li class="alt"><span>                            return "<span class="tag"><</span><span class="tag-name">span</span><span> </span><span class="attribute">title</span><span>=</span><span class="attribute-value">" +銆value + "</span><span class="tag">></span><span>" + value + "</span><span class="tag"></</span><span class="tag-name">span</span><span class="tag">></span><span>";    </span></span></li> <li><span>                        }    </span></li> <li class="alt"><span>                    },        </span></li> <li><span>                    {field:'hot',title:'鐑?#37719;?,width:100,  //瀛楁hot    </span></li> <li class="alt"><span>                        formatter: function(value,row,index){    </span></li> <li><span>                            if(value) { //濡?#37835;?#37828;痟ot锛?#29831;?#37706;间负true锛寁alue鏄痓oolean鍨?#37721;?#38322;?nbsp;   </span></li> <li class="alt"><span>                                return "<span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">'checkbox'</span><span> </span><span class="attribute">checked</span><span>=</span><span class="attribute-value">'checked'</span><span> </span><span class="attribute">disabled</span><span>=</span><span class="attribute-value">'true'</span><span>"; //?#23296;閫?nbsp;   </span></span></li> <li><span>                            } else {    </span></li> <li class="alt"><span>                                return "<span class="tag"><</span><span class="tag-name">input</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">'checkbox'</span><span> </span><span class="attribute">disable</span><span>=</span><span class="attribute-value">'true'</span><span>"; //涓嶅嬀閫?nbsp;   </span></span></li> <li><span>                            }    </span></li> <li class="alt"><span>                        }    </span></li> <li><span>                    },    </span></li> <li class="alt"><span>                    {field:'account.login',title:'鎵灞?#32480;$悊鍛?,width:200, //account.login绠$悊鍛?#37927;诲綍鍚?nbsp;   </span></li> <li><span>                        formatter: function(value,row,index){    </span></li> <li class="alt"><span>                            if(row.account != null && row.account.login != null) {    </span></li> <li><span>                                return row.account.login; //濡?#37835;?#37927;诲綍鍚?#28051;嶄负绌?#38171;屾?#21095;?#34425;?#35826;綍鍚?nbsp;   </span></li> <li class="alt"><span>                            } else {    </span></li> <li><span>                                return "姝?#32491;?#37714;?#23052;?#37832;夌?#24714;鍛?quot;;    </span></li> <li class="alt"><span>                            }    </span></li> <li><span>                    }       </span></li> <li class="alt"><span>                    }    </span></li> <li><span>                ]]        </span></li> <li class="alt"><span>            });     </span></li> <li><span>        });    </span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>      </span></li> <li><span>  <span class="tag"><</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span class="tag-name">table</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"dg"</span><span class="tag">></span><span class="tag"></</span><span class="tag-name">table</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆<span style="font-size: medium;"><strong>6.  娴?#29831;?#37828;剧ず缁?#37835;?/strong></span></p><p>銆銆鏈鍚庢垜浠?#23092;?#29831;?#28051;涓婦ataGrid鐨?#37828;剧ず缁?#37835;?#38171;屽涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160507000536723.png" width="600" height="258" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#28051;?#38171;歋truts2?#25328;Json鐨勬暣鍚? /></p><p>銆銆鍒?#26473;?#38322;?#38171;屾垜浠垚鍔?#37825;?#37722;?#27996;哠truts2?#25328;json锛?#37916;板湪鍙?#28000;ュ拰?#22688;鍙?#28028;?#26440;搄son鏍?#23534;?#37928;勬暟鎹?#27996;?#37510;?/p><p> </p><p> </p>]]></description><category>?#33931;浠跺紑鍙?/category><comments>http://www.ojizl5.fun/software/767.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=767</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=767&key=d3fa2df2</trackback:ping></item><item><title>闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/internet/766.html</link><pubDate>Wed, 20 Sep 2017 10:36:58 +0800</pubDate><guid>http://www.ojizl5.fun/internet/766.html</guid><description><![CDATA[<p>銆銆<span style="font-size: medium;"><strong>涓</strong></span></p><p>銆銆?#22172;寰俊鍏?#37721;?2骞村紑濮?#28000;ユ潵锛屼竴娉?#37712;?#28729;?#37714;?#28051;?#37711;磋捣銆?/p><p>銆銆?#28266;鍐?#28729;?#37714;?#28051;氬ぇ?#30086;鐨?#37818;?#37716;?#28051;?#38171;屾秾鐜板嚭浜?#28051;浜?#29722;?#32457;颁负“澶?#38318;?rdquo;鐨?#28598;?#37721;?#37510;?#37832;?#27996;涘ぇ鍙?#37828;?#28000;?#37719;氬杩?#32457;?#38000;屾潵锛?#37832;?#27996;涘ぇ鍙?#37714;?#37832;韩灏?#28051;鐩?#37828;?#37832;?#37835;勫獟浣?#37812;栨垚鍚?#28598;锛?#26473;?#37832;?#27996;涘ぇ鍙?#38171;屽湪?#23266;骞?#39582;村墠鏍?#37832;?#32491;?#32491;嶆棤鍚?#37510;?/p><p>銆銆浠?#38342;跺埌骞?#37711;ョ櫨涓?#37719;?#28051;?#38171;屼?#26495;?#37716;?#26440;勪笂浜?#38171;屽綋?#21159;鏄?#29863;?#28729;?#38171;?#26473;?#37828;?#28051;?#28751;?#37928;勮耽瀹?#37510;?/p><p>銆銆浣嗗浜?#27996;?#28051;氭潵璇?#38171;屽熀浜?#37812;戜竴鍚?#37928;?ldquo;娓?#38316;撲负鐜?鍐?#28729;逛负鏈?rdquo;鐨勮?#20636;偣锛屼竴涓?#37712;?#28729;?#37922;?#27996;ф簮锛屾瘮璧?#39582;?#37721;版笭閬?#38171;屽奖鍝?#37716;?#26473;?#37828;?#23534;?#23536;?#28598;?#37510;?/p><p>銆銆鎵浠?#38171;?#37832;?#32481;囩潃閲?#29835;?#37928;?#38171;屼?#28616;劧鏄?#23059;?#38316;?骞?#37721;?#32491;?#37928;勮耽瀹?#37510;?#38171;?#28000;?#37733;?#37826;囦负涓?#38171;?#29785;嗛煶棰?#32491;?#28729;?#37812;戝?#23942;濊?#37804;濊?#38171;屽啀鐮?#28051;?#30226;锛?/p><p>銆銆<span style="font-size: medium;"><strong>浜?/strong></span></p><p>銆銆绗?#28051;涓?#28598;?#29863;?#28729;?#38171;?#28000;?#37827;?#28598;存潯銆?/p><p>銆銆浠?#37827;?#28598;存潯鍒涘缓浜?2骞?鏈?#38171;?#27996;?#39582;?#37928;勬?#22549;棿锛屽綋涓?#28028;板煎凡杩?#37711;ョ櫨浜跨編鍏?#28103;?#28052;?#38318;?#38171;?017骞存敹鍏?#26473;?#28051;?#27368;浜?#37719;?#27996;?#27996;烘?#25117;竵锛屽?#26048;棤鎮?#36423;?#37510;?/p><p>銆銆浠?#37827;?#28598;存潯鐨勬棭鏈熷?#28060;捣锛屽拰鍐?#28729;?#37714;?#28051;?#37711;崇郴骞?#28051;?#37828;?#28598;?#28598;?#37510;?/p><p>銆銆2014骞?鏈?#38171;?#28000;?#37827;?#28598;存潯瀹?#29999;?#28729;屾垚1浜跨編閲戣?#23944;祫锛屼?#26495;?浜?#37510;?#26473;?#28051;?#37826;伴椈寮曡捣浜?#37825;?#28051;?#28655;?#28003;?#37734;?#37928;?#37711;虫敞锛屼篃寮?#37721;?#27996;?#37722;庢潵鐨?#37813;璋?#37911;堟潈浜?#29825;?#37510;?#28003;嗗湪?#32139;鏃?#38171;屽唴瀹?#37714;?#28051;氳櫧宸叉?#21229;劧璧?#23005;?#38171;屼笉杩?#29835;?#28051;?#28051;?#37828;?#28000;涔堥鍙?#37510;傛垜浠?#37737;洪?#25118;浘缁?#28000;?00涓?#27996;烘?#25117;竵浼板?#37928;?#28000;?#37837;?#38171;?#26473;樻?#26337;祫浜?#28051;涓?#37721;?#37510;傚湪浠?#28598;?#38171;屾槸寰堥毦鎵?#37714;?#26473;?#32457;?#28028;板?#26916;?#37929;?#37928;?#37510;?/p><p>銆銆浣?#28000;?#37827;?#28598;存潯鍚庢潵?#27967;?#36127;褰?#37806;?#37928;?#37721;戝睍锛屼笌鍐?#28729;?#37714;?#28051;氬氨棰?#37832;?#37711;崇郴浜?#37510;?#37733;犱负澶?#28598;氭暟鍐?#28729;?#37714;?#28051;氳?#38171;?#37719;?#28186;?#38322;?#36423;冨湪寰俊鍏?#37721;?#28051;?#38171;屼?#28616;劧浼氬湪澶存潯鍚屾?#27967;鏂?#37510;?/p><p>銆銆杩?#32513;?#28598;存潯甯︽潵浜嗗法澶?#37928;勫唴瀹规暟閲?#38171;屽?#29808;簲鐨?#38171;屼篃灏?#29999;︽潵浜嗗法澶?#37928;?#39582;?#37723;婁綅?#26271;閲?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>涓?/strong></span></p><p>銆銆鎻?#37822;?#37510;?/p><p>銆銆瑙傚療涓涓?#28000;?#39582;?#37723;婁负涓?#29781;佹敹鍏?#22959;?#23534;?#37928;勫唴瀹?#37922;?#37808;?#38171;?ldquo;骞?#37723;婁綅?#26271;閲?rdquo;鏄?#28051;涓潪甯?#38322;?#29781;?#37928;?#37934;?#37714;?#37816;囨爣銆?/p><p>銆銆涓鑸?#37808;?#28052;?#28051;?#37813;璋?#37928;勫獟浣?mdash;—涔?#28751;?#37828;?#28051;涓?#37712;?#28729;?#37922;?#27996;?#32468;?mdash;—閫氬父浼氳鍒?#28729;氫负“浣?#38322;?#37832;?#38340;?rdquo;銆?#28003;?#38322;?#37832;?#38340;?#37928;?#37720;?#37733;?#28751;卞湪浜?#38171;?#28729;?#37928;?#39582;?#37723;婁綅鏄?#37832;?#38340;?#37928;?#37510;?/p><p>銆銆骞?#37723;婁緷闄?#27996;?#37712;?#28729;?#28052;?#28051;?#38171;屼?#21975;唴瀹规暟閲忓?#27194;湪澶?#38010;辨澘鍚?#38171;?#39582;?#37723;?#37824;?#37711;?#28751;?#28051;瀹?#28028;氬?#27194;湪澶?#38010;辨澘銆?#38000;?#29781;佹彁鍗?#37712;?#28729;规暟閲?#38171;屽浜?#37712;?#28729;?#37922;?#27996;?#37736;?#37928;勫獟浣撴潵璇?#38171;?#26473;?#28751;?#37808;?#37723;崇潃鎻愰?#27195;垚鏈?#37510;?/p><p>銆銆杩?#28751;?#37828;负浠涔堜紶?#31930;濯?#28003;?#28598;?#28598;?#38318;?#37828;?ldquo;闆?#37733;?#23534;忕?#29111;瓨”鐨?#37720;?#37733;?#38171;屼竴涓?#32513;勭粐鍔?#27996;嗗ソ澶氬獟浣?#38171;屽晢涓?#28051;?#38171;屽氨鏄?#37807;虫彁鍗?#39582;?#37723;婁綅?#26271;閲?#37510;?/p><p>銆銆涓?#26473;?#37712;?#28729;?#39582;?#37721;?#28751;卞拰鍐?#28729;?#37922;?#27996;?#32468;?#28051;?#37722;?#38171;氬畠鐨勫唴瀹?#28699;樺湪涓?#28051;?#37911;圭偣锛?銆?#37929;稿浜?#28051;涓?#37913;?#32468;?#37928;?#37922;?#27996;?#32468;?#38171;屾暟閲?#37835;?#37711;跺法澶?#38171;?銆佹垚鏈潪甯?#28003;?#37510;?/p><p>銆銆浜掕仈缃?#37928;?#37713;犱釜鍋氬嚭?#27861;澶?#37922;?#37808;?#37928;勫唴瀹?#39582;?#37721;?#38171;?#38318;?#37828;?#26473;欐牱鐨?#37510;?#28000;庢?#23684;潰鐨勯棬鎴?#37714;版?#28357;储锛?#28000;庣Щ鍔?#37928;勫唴瀹硅?#27692;?#22291;PP鍒扮ぞ浼氬?#26663;獟浣?#37510;?/p><p>銆銆瀹?#28000;?#37928;?#39582;?#37723;婁綅?#26271;閲忕?#27699;嚦鍙?#28000;ョ敤“?#26852;绌?rdquo;?#28533;琛?#26440;?#38171;?#37721;?#29781;佸ぉ涓嬩?#28616;劧鏈夌敓浜?#37712;?#28729;?#37928;?#27996;?#37510;?#28051;鑼?#28051;鑼?#37928;勯煭鑿?#38171;屼竴娉?#28051;娉?#37928;勭緤姣?#38171;?#37721;?#28052;?#28051;?#28751;界敤涔?#28051;?#32468;?#37510;?/p><p>銆銆杩欐鎻?#37822;?#37711;跺?#28852;槸寰?#32480;鍗?#37928;勫獟浣撳晢涓?#37711;ラ棬?#29025;璇?#38171;屼絾鏈夐壌浜庤嚦浠?#26473;?#37832;?#27996;?#29825;や负“鍐?#28729;逛负鐜?rdquo;锛屽?#21620;?#35826;?#27407;嚭?#28533;浠?#23005;?#29785;?#37722;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍥?/strong></span></p><p>銆銆澶存潯骞?#28051;?#37828;?#32513;?#37813;块棬鎴?#37928;勮。閽?#38171;岃櫧鐒跺畠?#28229;涓?#37720;诲拰?#26860;鎴?#37832;夌?#29808;儚銆?#38000;屼笖瀹冨綋骞磋捣瀹?#37928;勬?#36346;?#38171;屼富瑕?#37928;勭?#28850;搧涔?#38318;?#37828;棬鎴峰仛鐨?#38171;屾瘮濡?#37820;滅嫄鐨?#37826;伴椈瀹?#37812;?#32468;?#37510;傝嚦浠?#38171;屼富鎺岃吘璁棬鎴?#37928;凮MG锛?#32515;戠粶濯?#28003;?#27996;?#28051;氱兢锛?#26473;?#37828;?#37814;?#28000;?#37827;?#28598;存潯瑙嗕负鏈閲?#29781;?#37928;勭珵浜夊鎵?#28052;?#28051;銆?/p><p>銆銆浣?#37832;?#29840;?#28051;?#38171;屽?#29361;竴楦?#37818;?#26473;?#37928;?#38171;屾槸鏉庡溅瀹?#37928;勬棗甯?#37510;?/p><p>銆銆涓涓?#23536;?#29723;ㄨ薄鐨?#29831;佹嵁灏?#37828;?#38171;?#28000;?#37827;?#28598;存潯骞?#28051;?#37807;?#29825;?#32515;?#37804;?#32514;?#26440;?#26473;?#32457;嶅?#26942;綅锛?#37722;庢潵?#22189;浜庢煇浜涘師鍥?#29825;?#32515;?#27996;?#38171;?#38171;屼絾?#26860;鎴锋亹鎬?#32513;勫缓鍥㈤槦鐨勭涓浠?#27996;嬪氨鏄?#38335;氬畾涓涓?#37804;?#32514;?#26440;戙?/p><p>銆銆浣犵煡閬撶櫨?#23475;锛?#28051;?#37828;櫨?#23475;鏂伴椈杩?#32457;?#28051;氬姟绾?#38171;?#37928;勬?#32514;?#26440;?#37828;?#29835;?#28052;?#38171;?#38171;堢瑧锛?/p><p>銆銆鏍?#36423;?#37711;抽敭璇?#37828;?#38171;氬?#24402;厤銆?/p><p>銆銆?#27368;?#23475;鐨?#37826;?#23534;?#37828;敤鎴?#37721;戣捣涓涓?#37711;抽敭瀛?#38171;岀?#36346;悗杩?#29723;?#37929;?#37711;冲唴瀹瑰?#24402;厤銆?/p><p>銆銆澶存潯鐨?#37826;?#23534;?#37828;?#37816;?#37818;樼敤鎴?#37928;?#28766;炴?#37816;囨爣锛?#37818;?#38315;佸唴瀹?#26473;?#29723;屽?#24402;厤銆?/p><p>銆銆涓涓?#37828;?#37815;?#37721;?#38171;坧ull锛?#28051;涓?#37828;?#37818;?#38315;?#38171;坧ush锛?#38171;屼絾鍙?#37828;敱浜?#37827;?#28000;?#37720;?#37733;?#38315;犳垚鐨勬妧鏈?#28003;跨敤涓?#37722;?#37510;?#37837;?#28699;?#28051;?#38171;?#38318;?#37828;?#28051;庣敤鎴?#37711;磋叮鍖归厤鍔?#26462;藉唴瀹?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>浜?/strong></span></p><p>銆銆澶存潯鐨勫?#28060;捣锛屽綋?#21159;鏈?#28051;?#29785;?#37716;?#37716;?#37510;佹垬鏈?#28003;跨敤寰楀綋涔?#32491;?#37928;?#37720;?#37733;?mdash;—浠?#28003;?#28051;涓?#27996;?#37725;佸?#28060;捣閮界涓嶅紑?#22172;?#38889;鍔?#37716;?#37510;?#28003;嗘垜杩?#37828;?#37807;?#29825;?#28051;璁?#28598;?#37716;?#37510;?/p><p>銆銆澶存潯鍗?#27996;嗗緢澶?#37928;勭Щ鍔?#27996;掕仈缃?#37928;勪究瀹?#37510;?/p><p>銆銆?#27368;?#23475;鎼滅储?#25328;绉?#37716;?#27996;掕仈缃戝皬灞?#37828;?#28051;嶅?#24402;厤鐨?#37510;傚湪妗岄潰锛岀櫨?#23475;鏄?#37832;澶?#37928;勬祦閲?#37711;?#37721;?#38171;岀湡鐨勬病鏈?#28052;?#28051;銆?#28003;嗗湪绉?#37716;?#28751;?#28766;?#38171;?#26473;?#28051;?#37716;?#38322;忚娑?#29785;?#27996;?#37510;?/p><p>銆銆?#27368;?#23475;浣滀负?#31078;閲?#37711;?#37721;?#38171;屼竴瀹跺氨鎺屾彙浜?#28051;?#37733;?#37825;?#28051;?#27996;掕仈缃戣惀閿鐩樺瓙鐨?-3?#22426;鐨勬?#26335;?#25424;垂?#25956;銆傚浜庣敳鏂?#38000;岃█锛屾垜绉?#28052;嬩负“鏋?#32510;?#23534;忔?#26335;斁”銆傜Щ鍔?#28751;?#28766;?#23057;?#29785;?#27996;?#28729;?#37928;?#37716;?#38322;?#38171;?#32475;?#37722;?#27996;?#38318;?#37714;?#38322;?#37824;惧嚭杩?#28051;澶?#32471;旀?#26335;?#25424;垂?#25956;銆?#38000;岀櫨?#23475;涓骞磋惀鏀舵暟?#27368;浜?#27996;烘?#25117;竵锛?#37719;?#28186;?#37828;?#37904;归?#36346;ご锛屼篃澶?#28051;涓猻tartup鍏?#37721;?#37722;?#27996;?#37510;?/p><p>銆銆鐢?#37826;?#37928;勪竴閮?#37714;?#26864;勭畻?#31078;鍚?#27996;?#37711;?#37721;?#38171;?#37929;?#37818;ュ拰鍐?#28729;?#37922;?#27996;?#32468;?#28725;?#37818;?#38171;?#37721;?#28598;?#37832;?#28051;閮?#37714;?#38171;屽氨?#28266;瀵?#37813;?#37826;?#37928;?#37835;?#32510;?#23534;忔?#26335;斁銆傚湪鑵?#29825;?#37825;?#28051;?#39582;?#37723;?#28003;?#32495;?#26473;樻病鏈?#37820;?#26462;借?#38155;潵涔嬪墠锛?#26473;?#28051;?#37835;?#32510;?#38171;屽唴瀹硅?#27692;悎绫籄PP鏄?#28051;涓?#28051;嶉敊鐨?#38315;?#37815;?#37510;?/p><p>銆銆澶存潯鍑?#32429;?#37734;?#37818;屾彙浣?#27996;?#26473;?#28051;?#28598;?#37716;?#38171;?#38000;?#37721;?#28598;?#28051;涓?#37712;?#28729;笰PP锛屾?#28357;嫄鏂伴椈锛岃櫧?#21159;鏄?#37832;鏃?#26440;?#37714;拌鏈?#26473;?#27996;?#37928;?#38171;屾?#21095;?#33333;?#27196;暐鍒?#37826;?#28598;?#29831;?#38171;屾病鏈夌户缁?#23075;?#38000;?#37510;?/p><p>銆銆鍒?#27996;?#28598;存潯鐨勭浜?#28051;?#39582;?#28598;?#38171;屼篃灏?#37828;?#28000;?#39582;?#38171;屾濡傚綋骞寸櫨?#23475;?#28266;绗?#27996;?#28051;?#39582;?#28598;?#37714;涘缓?#27368;?#23475;?#29025;閬?#38171;?005骞?鏈?#38171;?#28051;?#29297;锛屽?#23384;潯鎺ㄥ嚭浜嗚嚜宸?#37928;勯棶绛?#27996;?#37725;?#38171;氭?#29114;?#27946;棶绛?#37510;?/p><p>銆銆杩?#28051;?#27996;?#37725;?#38316;?#37714;?#27996;?#28051;氬唴鑷冲皯鏄?#37721;?#28598;?#28051;?#37928;?#38339;?#37713;?#38171;屽寘鎷煡涔庡拰寰?#37719;?#37510;?#38000;?#26473;?#28051;鍙樺寲锛屼篃鍙?#28000;?#29825;╂垜浠?#29785;傚療鍒?#38171;?#28000;?#37827;?#28598;存潯鐨勫鎵?#38171;屽?#33580;粡涓嶅啀鏄綋骞?#37721;?#37728;婄潃鐗堟潈鐨勫唴瀹?#37922;?#27996;?#32468;?#38171;堝獟浣?#38171;?#38171;屼篃涓?#28729;?#37711;?#37828;?#29831;?#28729;堕棬鎴?#37928;勮?#27692;?#22559;?#20276;椈APP銆?/p><p>銆銆瀹?#37928;勬晫浜烘洿澶?#27996;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍏?/strong></span></p><p>銆銆绗?#27996;屼釜璧?#28729;?#38171;?#37826;版氮寰?#37719;?#37510;?/p><p>銆銆寰?#37719;?#27996;?9骞村紑濮嬪唴娴?#26473;?#38016;?#38171;?#37714;?#37916;板湪宸茬粡鍏?#39582;?#37510;?#28051;?#28598;存潯涓?#37722;?#38171;?#26473;?#37828;?#28051;涓?#22959;?#29882;?#22935;岄潰鍒扮Щ鍔?#38339;舵鐨?#27996;?#37725;?#38171;氬井鍗?#28051;?#32017;濮?#26473;?#37828;?#23536;堥噸瑙嗘?#23684;潰琛?#37916;?#37928;?#38171;?#37916;板湪搴?#29831;?#29831;?#37713;犱箮鎵鏈?#37716;?#38322;?#38318;藉湪绉?#37716;?#28051;?#37510;?/p><p>銆銆寰?#37719;氬綋涓嬪?#20634;煎?#33580;粡瓒呰秺浜?#28729;?#37928;勮?#29999;?#38171;歵witter銆?/p><p>銆銆寰?#37719;?#28000;?#37714;?#37714;?#37714;?#32507;佽崳鍒?#29723;拌惤鍙?#37714;?#32507;佽崳锛?#37711;?#37714;?#29831;佹槑浜?#28051;鐐?#38171;屽唴瀹?#39582;?#37721;?#37928;勬牳蹇?#29781;?#37716;?#37828;俊?#20229;鏁?#37722;?#37510;傚井鍗?#37929;?#27996;庢捣閲?#37928;勭涓?#37826;逛俊?#20229;渚?#32513;?#38171;?#29723;?#27996;庝俊?#20229;杩?#27996;庡?#22559;潅锛?#37721;?#37929;?#27996;?#38318;?#38016;藉寲鍚庝俊?#20229;鐩稿鏈?#37825;?#37928;?#37714;?#37815;?#28051;?#29785;?#26440;?#37510;?#26473;?#38322;岄潰涔熷寘鎷?#28725;硅惀閿?#20426;?#20229;鐨?#37818;?#37714;?#37510;?/p><p>銆銆寰?#37719;氬垎?#36127;涓?#28051;?#38339;舵锛屼腑?#26879;澶ц嚧浠?013骞翠负鍒?#37715;茬嚎銆?/p><p>銆銆绗?#28051;涓?#38339;舵锛岃?#21615;骇澶绛栫暐銆傚湪杩?#28051;?#38339;舵涓?#38171;屽?#29361;箮鎵鏈?#27996;洪兘鐪嬪?#34249;井鍗?#38171;岀?#27699;?#20914;?#23106;嚭“鍥?#29785;?#37824;?#37721;?#28051;?#37733;?rdquo;杩?#32491;?#28051;?#28052;?#28598;?#37930;?#37928;?#37721;?#37721;?#37510;?/p><p>銆銆绗?#27996;屼釜闃舵锛?#38318;?#38016;藉?#26667;?#26667;暐锛屼篃灏?#37828;?#37813;舵寔涓?#28751;廣銆?#26473;?#28051;?#38339;舵寰?#37719;氬姫鍔?#28051;嬫矇锛?#39582;跺紑濮嬫敹缂?#37812;?#37825;磋?#20906;涓?#37826;硅惀閿鍔?#37716;?#37510;?#28003;?#26473;?#28051;?#38339;舵鍒氬紑濮嬮潪甯歌?#20276;毦锛?#28000;?#38007;?#27996;庡湪鍖?#28051;?#39582;?#23536;?#28598;?#28028;?#29825;?#29825;哄潧锛?#38318;?#28028;氬惉鍒?ldquo;鐜板湪娌?#27996;虹敤寰?#37719;?rdquo;浜?#28052;?#32491;?#37928;?#29831;存硶銆?/p><p>銆銆鎴戝拰澶?#28598;氭暟璇?#29825;?#38000;?#28051;?#37722;?#38171;岀涓涓?#38339;舵?#22443;垜?#28229;绌虹浜?#38339;舵?#22443;垜鐪嬪銆?#38000;岀?#34425;炕澶?#37928;勪竴涓?#38322;?#29781;佸師鍥?#38171;屽湪浜?#28051;涓?#37816;囨爣銆?/p><p>銆銆涓庡墠鏂?#37813;鎻?#37721;?#37928;?#39582;?#37723;婁綅?#26271;閲?#28051;?#29297;锛?#26473;?#28051;?#37816;囨爣涔?#37828;?#29785;傚療涓涓?#28000;?#39582;?#37723;婁负涓?#29781;佹敹鍏?#22959;?#37736;?#37928;勫唴瀹?#28051;氭?#37928;?#37711;抽敭?#26271;鎹?#38171;氬箍鍛?#28051;绘暟閲?#37510;?/p><p>銆銆12骞?#37733;涘?#23475;鐨勬?#36346;?#38171;屾浌鍥?#28028;熷湪鎶?#38343;插井鍗氭暟鎹?#37827;舵彁鍒?#38171;?#37722;?#38000;?#37928;?#39582;?#37723;?#28051;绘暟閲?#37828;?0涓?mdash;—鍡?#38171;岀湡鐨?#38171;屾病灏戝啓涓?#38342;?#37510;?/p><p>銆銆鏃?#38007;?#28000;?#37827;?#38171;屽?#33580;?#24531;潗鎷ユ暟鍗?#28051;?#39582;?#37723;?#28051;?#38171;屾槸?#28522;甯告爣鍑?#37928;?ldquo;灏忕敓鎰?#37928;?#28598;ф晠浜?rdquo;銆?/p><p>銆銆<span style="font-size: medium;"><strong>涓?/strong></span></p><p>銆銆寰?#37719;?#37928;勪紶鎾?#22959;?#37736;嬫槸涓涓?#23536;堟?#38155;潅鐨?#37826;?#23534;?#37510;?#28729;?#37827;?#37832;夌敤鎴?#37714;扮敤鎴?#37928;?#37813;璋撶ぞ浼氬寲浼?#37822;?#38171;屼篃鏈夊井鍗?#26473;?#38016;?#37826;硅嚜宸卞仛鐨?#37813;璋?#28051;?#26864;?#29825;?#32459;?#29825;?#32515;?#37510;?#28003;犲?#22565;毦璇?#23536;?#37719;氬満鍩?#38322;屾槸涓?#36423;冨?#26667;殑锛屼篃涓嶈兘绠鍗?#37734;?#28051;鍒鍒?#28051;嬪幓璇?#26473;?#37828;?#37720;?#28051;?#36423;冨?#26667;殑銆?/p><p>銆銆鑴?#38003;?#27996;?#37826;版氮杩欐牱鐨勯棬鎴?#38171;?#37711;跺疄寰?#37719;氭棤娉曟?#21978;?#36941;瀛?#38322;屽獟浣?#37711;?#37721;?#37928;?#37737;?#37733;?#37510;?#37813;浠?#28725;?#23536;?#37719;?#23005;?#32429;?#37928;勬弿杩版槸锛氱ぞ浼氬?#26663;獟浣?#38171;坰ocial media锛?#38171;?#38000;屼笉鏄?#32448;?#27996;?#32515;戠粶锛坰ocial network锛?#37510;?#37721;?#28000;?#29831;?#38171;?#37832;?#37826;?#29831;?#29825;?#26473;?#37928;?#37733;涘ぇ璧?#28729;?#28051;?#38171;?#37832;鎺?#26473;戝獟浣?#37928;?#38171;屾槸寰?#37719;?#37510;?/p><p>銆銆澶存潯涓?#37928;勫唴瀹规潵?#22172;浜?#28598;?#38318;?#37712;?#28729;规姄鍙?鍚屾锛?#28000;?#37721;?#38171;?#37929;?#37818;ュ湪澶存潯骞?#37721;?#28051;?#37818;?#38315;?#38171;堟?#26668;嚜琛?#37722;屾鍏跺畠骞?#37721;?#29999;?#37721;?#38171;?#37510;?#37722;?#38000;?#29722;?#32457;?#28052;嬩负澶存潯鍙?#37510;傚?#23384;潯鍙?#37929;墠鎬?#38322;忓?#33580;粡杈?#37714;?0涓?#37928;勮?#21228;ā锛?#37711;?#28051;?#37832;?#37711;垚锛屽睘浜?#23033;熸?#26664;剰涔?#28051;?#37928;?ldquo;?#22172;濯?#28003;?rdquo;——涓鑸悊瑙d负姝g粺浼犵粺濯?#28003;撳紑璁?#37928;勫獟浣?#29999;?#37721;?#37510;?/p><p>銆銆寰?#37719;氬氨涓?#23005;ら潪甯?#28051;?#37722;?#37510;傚井鍗氬?#29361;?#24226;病鏈夋潵?#22172;绗?#28051;?#37826;?#37722;屾鎴栨姄鍙栫殑鍐?#28729;?#37510;傚?#29361;箮鎵鏈?#37928;勫井鍗氱敤鎴?#38171;?#38318;藉湪寰?#37719;?#28051;?#37922;?#27996;?#37510;?#28028;?#37822;?#37712;?#28729;?#37510;傛晠鑰屽井鍗氬緢灏戠鍒?#37813;璋?#37911;堟潈浜?#29825;?#37928;勯棶棰?#37510;?/p><p>銆銆涔?#23005;?#37733;犱负姝?#38171;屽井鍗?#29785;嗚嚜宸变负涓涓?#37712;?#28729;?#37922;?#27996;?#38318;ㄩ棬锛屽澶存潯鐨?#37722;屾瓒婃潵瓒?#28051;嶈兘蹇?#37510;?#37813;?#28028;?#37832;?#37832;杩戜袱澶?#37721;戠敓鐨勪竴娆?#37828;忔嫑銆?#26473;?#28051;?#37718;?#28598;?#37813;鎬?#37928;勫?#22317;敤鎴疯憲浣滄潈鐨勬潈鍒?#28051;?#23534;?#38171;?#37711;?#38003;?#37722;?#37716;?#37733;?#28751;卞湪浜?#38171;?#39582;?#37723;?#37828;?#38340;勭潃浜?#37712;?#28729;?#28051;?#37928;?#37510;傚井鍗氬ぇ姒?#28000;ヤ负锛?#37813;?#37818;?#27996;?#28598;存潯锛堝寘鎷?#37806;熺?#27946;棶绛?#38171;夊寰?#37719;?#37928;?#37722;屾锛?#37721;兘浼氬噺灏戝悗鑰?#37721;?#37719;栫殑骞?#37723;婁綅鍚?#37510;?/p><p>銆銆鐩?#38007;?#28000;?#37827;?#38171;屽井鍗?#26473;?#37828;?#37832;夊緢寮?#37928;?#28000;?#37826;版氮浼?#37813;?#26473;囨潵鐨勫唴瀹规?#32513;?#37928;勫奖瀛?#38171;?#38000;屼笉鏄?#28641;傚?#23384;潯銆佺櫨?#23475;閭?#38008;?#38171;岄瀛?#38322;?#29825;や负?#22172;宸?#37828;?#28051;瀹舵妧鏈?#37711;?#37721;?#37510;?#37711;跺疄寰俊鍏?#37721;?#39582;?#37721;?#37826;?#28052;?#28000;庢潵涓?#29825;や负?#22172;宸?#37828;?#28051;瀹跺唴瀹?#37711;?#37721;?#38171;岃櫧?#21159;琛ㄨ薄涓婂?#20634;井鍗氳埇锛屼篃鏄?#23092;?#38322;?#37928;勭涓?#37826;瑰湪骞?#37721;?#28051;?#37922;?#27996;?#37712;?#28729;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍏?/strong></span></p><p>銆銆绗?#28051;?#28051;?#28598;?#29863;?#28729;?#38171;氳吘璁?#37510;?/p><p>銆銆鐨?#32429;?#38171;?#32491;?#28028;?#37832;?#37721;嬪湀骞?#37723;?#37510;?#39582;跨偣閫?#28052;?#32491;?#38171;屽拰WXG锛堝井?#20426;浜?#28051;氱兢锛?#37711;崇郴涓?#28598;?#38171;屼篃鐨?#32429;甇MG杩樺湪鑻?#38011;?#28725;?#37813;捐嚜宸?#37928;勫?#27194;湪鎰?#38171;屼?#21976;垜璇?#37928;?#37828;?#38005;?#29825;?#38171;屼竴涓?#37825;?#28003;?#37928;勮吘璁?#37510;?/p><p>銆銆鑵?#29825;?#28051;?#29781;?#37928;勬敹鍏?#28186;?#37906;跺湪?#29238;鎴?#28051;?#38171;?#37813;浠?#28729;?#37928;?#29999;傚奸鍗囧拰鍐?#28729;硅耽瀹?#37828;?#37722;?#37832;?#37711;宠仈杩?#28051;嶅ソ璁?#37510;備緷鐒剁湅涓涓嬪箍鍛?#37928;勮〃鐜?#37510;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20170920103019.jpg" alt="闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;? /></p><p>銆銆杩?#23534;?#29723;?#37837;艰兘澶熸竻鏅?#37734;?#37721;?#37828;犲嚭锛?#39582;?#37723;?#37719;?#37825;?#28051;?#38005;?#29825;?#37824;?#37711;?#37929;樺瓙鐨勬瘮閲嶅湪閫?#39582;?#28051;?#37719;?#37510;?/p><p>銆銆鍚屾椂锛屾垜浠?#28052;熻兘浠?#28051;?#37837;?#37722;屾瘮澧炲箙涓敞鎰?#37714;?#38171;岃吘璁?#39582;?#37723;?#37824;?#37711;?#37928;勫?#28858;暱鐩稿綋蹇?#38171;?#29882;?#26473;囨暣涓?#38005;?#29825;?#37824;?#37711;?#28598;?#37929;?#37510;?/p><p>銆銆閭?#28052;?#38171;岃吘璁?#39582;?#37723;?#37824;?#37711;?#37721;戝?#28056;湪鍝?#38322;屽憿锛?/p><p>銆銆<span style="font-size: medium;"><strong>涔?/strong></span></p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20170920103045.jpg" alt="闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;? /></p><p>銆銆杩?#23534;?#29723;ㄧ粺璁?#37928;?#37828;?#38005;?#29825;?#28051;?#28051;?#28051;氬姟锛堟父鎴忓拰骞?#37723;?#38171;?#28000;?014骞碤1鍒?017骞碤2鐨?#38315;愬琛?#37916;?#37510;?/p><p>銆銆棣?#37711;堟垜浠兘鐪嬪埌鐨?#37828;?#38171;屾父鎴忓湪鑵?#29825;?#37825;?#28003;撴敹鍏?#37928;?#37719;犳瘮鏈杩?#27996;?#28051;?#28699;e害宸茬粡闀?#37832;?#28003;?#27996;??#22426;銆?017骞寸幇?#34180;绾ф父鎴?#37916;?#38000;呰崳鑰鐨勮鐪?#29723;?#37916;?#38171;屼娇寰桻1?#29238;鎴?#37719;犳瘮闃绘崲浜?#28051;鐩?#28051;嬫粦鐨?#37719;犳瘮锛屼絾鍒?#27996;?#27996;屽?#23475;锛屽害杩?#39582;?#37723;?#29723;屼笟钀?#37824;?#37832;鎯?#23075;?#37928;凲1涔?#37722;?#38171;?#37719;犳瘮閲?#37826;?#37733;炶惤銆?/p><p>銆銆15骞村紑濮?#37928;?#37720;?#28051;?#28699;e害锛?#39582;?#37723;?#37719;?#28699;e害鍚屾瘮澧炲箙?#28522;甯?#37721;?#29785;?#37510;傜?#21976;煡涓嬫潵锛岃吘璁?#39582;?#37723;?#28051;?#32520;?#38171;?#37711;舵?#22559;灉骞?#37723;?#38171;?017骞寸暐璋?#27996;嗙粺璁?#37721;?#23536;?#38171;屾敼鍚嶄负绀?#27996;?#37721;?#37711;跺畠骞?#37723;?#38171;?#37722;屾瘮澧炲箙瓒呰秺鍏跺搧鐗?#39582;?#37723;?#38171;?017骞寸暐璋?#27996;嗙粺璁?#37721;?#23536;?#38171;屾敼鍚嶄负濯?#28003;?#39582;?#37723;?#38171;?#37510;?/p><p>銆銆鑰屾?#22559;灉骞?#37723;?#38171;屼富瑕?#37928;?#37835;勬垚閮?#37714;?#28751;?#37828;?#37832;?#37721;嬪湀骞?#37723;?#37510;佸井?#20426;鍏?#37721;?#28051;?#37928;?#39582;跨偣閫?#32475;?#37510;?/p><p>銆銆2013骞村紑濮嬮厺閰?4骞?#23005;?#23534;?#37711;磋捣鐨勫唴瀹?#37714;?#28051;?#38171;?#37711;?#37721;锋暟閲?#28000;?#37719;?#28051;囩骇鍒扮櫨涓囩骇鍒?#28000;?#28598;?#37928;?#37719;?#28051;囩骇锛屼负骞跨偣閫氬箍鍛?#37819;?#28186;?#27996;?#28598;?#38322;?#37928;?#37721;敭鍗?#39582;?#37723;婁綅缃?#37510;?#38000;屽井?#20426;?#25956;鎴峰鏈?#37721;嬪湀鐨勭?#27196;潃?#23475;——鎸夌収鑵?#29825;?#32457;戞妧浼侀箙鏅洪叿鐨?#29831;存硶锛?#37832;?#37721;嬪湀鍔涘?#23340;偣瀵圭偣閫?#29825;?#38171;屾槸寰俊澶?#37721;?#28003;跨敤棰?#37916;?#37928;?#37716;熻兘——涔?#28003;?#23536;?#37832;?#37721;嬪湀骞?#37723;?#23536;?#28000;?#28598;?#37719;?#37510;?/p><p>銆銆鎵璋?#37928;勫搧鐗?#39582;?#37723;?#38171;岃吘璁?#28729;?#37826;?#29831;存硶鏄?#28051;?#29781;?#37721;?#37828;犳潵?#22172;绉?#37716;?#32468;?#39582;?#37721;?#38171;堝?#20637;吘璁?#37826;伴椈锛?#37510;佽吘璁?#29785;?#26864;?#32475;?#37824;?#37711;?#37510;?#28052;?#28751;?#37828;?#29831;?#38171;?#26473;?#28051;?#38318;?#37714;?#38171;?#37928;?#32429;?#37721;?#28000;?#37737;?#37832;?#28725;规爣浠?#37827;?#28598;存潯銆?#37825;?#28051;?016骞?#38171;屾敹鍏?#28052;?#26473;囩櫨浜?#37510;?017骞?#29835;?#37825;?#37721;?#23536;?#37722;?#38171;?#29722;?#28729;?#28052;変负濯?#28003;?#39582;?#37723;?#37824;?#37711;?#38171;?#28051;?#29781;佸寘鎷?#37826;伴椈銆佽棰?#37721;婇煶涔?#37928;?#39582;?#37723;婁綅浜?#37922;?#37928;勬敹鍏?#38171;?#38171;屼笂鍗?#39582;?#28052;熷?#33580;粡鏂?#38014;?5浜?#28003;?#27996;烘?#25117;竵锛?#38000;?#39582;?#37723;?#29723;屼笟涓鑸?#28051;?#37719;?#39582;撮珮浜?#28051;?#37719;?#39582;?#38171;?#37711;?#39582;存敹鍏?#26473;?#28051;?#27368;浜?#37719;?#27996;?#28052;熷?#26048;棤鐤戦棶銆?/p><p>銆銆杩欐牱鐨勬垚缁?#37719;?#38171;?#29831;磋吘璁?#29781;佹彁闃?#28000;?#37827;?#28598;存潯鍊?#28052;熸病?#27146;锛屼絾瑕佽琚?#28598;存潯鍘嬪埗锛屾?#21095;?#36346;睘浜?#37833;?#27996;?#36423;?#28598;?#27996;?#37510;?/p><p>銆銆鑵?#29825;?#38171;岀悊鎵?#32139;?#21159;鐨?#38171;屾槸鍐?#28729;?#29723;屼笟閲?#37928;?#28598;?#29863;?#28729;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?/strong></span></p><p>銆銆绗?#37733;?#28051;?#28598;?#29863;?#28729;?#38171;?#38339;?#38322;?#37510;?/p><p>銆銆涓?#32491;?#27996;氶┈閫?#37928;?#27996;?#28051;?#37813;涓?#37722;?#37928;?#37828;?#38171;?#38339;?#38322;?#37832;?#29840;?#28051;?#37928;勪?#27692;姟骞?#28051;?#37828;?#38342;跺敭锛?#38000;屾槸骞?#37723;?#38171;堝晢瀹?#37928;勮惀閿璐圭敤锛?#37510;?#37721;?#32457;?#37711;嶈垂鐨勬窐瀹?#38344;?#29999;?#37716;╁晢瀹?#37818;?#39582;?#38014;?#37721;?#37714;?#23057;?#38171;屽搧鐗?#37813;庡爢鐨?#28598;?#37914;?#38171;?#37714;?#37828;?#37814;?#37721;?#27996;?#37828;?#28003;?#38322;戙?/p><p>銆銆浜?#28051;?#37928;?#27996;?#37828;?#38322;?#38171;圙MV锛?#29906;?#28598;?#38171;?#39582;?#28051;?#28051;瀹?#28028;氬舰?#22426;鍒?#23057;?#38171;?#37733;犱负瀹?#37828;樊浠锋ā寮?#38171;?#37832;?#26473;涜揣?#22426;鏈?#37510;?#28003;?#38339;?#38322;?#32495;籊MV瓒?#28598;?#38171;岃嚜?#38889;鐨勬敹鍏?#28052;?#28751;辫?#23111;珮锛孏MV鍒?#26440;?#28051;瀹?#29785;勬ā鍚?#38171;岃冻浠?#35120;㈡垚鍒?#23057;?#37510;?/p><p>銆銆浣?#38339;?#38322;?#26473;欐牱“铏氭嫙?#26210;涓氬湴浜?rdquo;鐨勬ā寮?#38171;屼即闅忕潃绉?#37716;?#37711;磋捣鐨?#28751;?#28766;忓寲鍚?#38171;岄潰涓?#28051;ュ郴鐨勮冮獙锛?#37818;?#38013;愪綅钀?#38335;?#32133;骞?#37723;婁綅鐩稿PC绔?#26473;?#29781;?#28051;?#28598;熺敤銆傚鏋滃簲瀵?#28051;嶅綋锛屽皢浼氬?#33392;嚧鏋?#38315;?#37818;ㄩ珮骞?#37721;?#28051;婂晢瀹?#37928;勮惀閿?#22426;鏈?#38171;屼娇寰?#37813;鏈夊晢瀹?#26473;?#37711;?#37733;氬緬鍥板锛?#37832;缁堟暣涓?#37922;熸佸穿鐩?#37510;?/p><p>銆銆闃?#38322;?#37928;勫簲瀵?#37826;?#23534;?#37828;?#38171;氬紩鍏?#39582;?#37723;婂?#26667;殑鍐?#28729;?#38171;屼竴鏂归潰澧炲?#34425;敤鎴风?#27194;害锛屼竴鏂归潰鍒?#38315;犳棤绌?#28598;?#37928;?#39582;?#37723;婁綅缃?#37510;?/p><p>銆銆娣?#28729;?#26440;?#27996;虹櫥鍦?#38171;?#37721;戝睍鍒版瀬鐩?#37827;?#38171;?#37832;夌櫨涓?#28052;?#28028;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?#28051;</strong></span></p><p>銆銆鏃?#37832;?#37928;?#37813;璋撳唴瀹?#37922;?#27996;?#37835;?#37711;剁畝鍗?#38171;?#29722;?#32457;颁负鍙?#37714;楁竻鍗?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20170920103126.jpg" alt="闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;? /></p><p>銆銆涓鍙?#29831;??#23266;骞?#28051;?#37727;嗗搧鍥?#37911;?#38171;屽氨鍙?#28000;?#37814;?#28003;?#37510;傚墠鎻?#37828;?#38171;?#26440;?#27996;烘竻鏅?#26473;?#38322;?#37928;勬父鎴?#29785;?#37714;?#38171;氬摢浜涘?#21975;?#20349;浆鍖栫巼?#29678;銆?#28003;?#38322;戦珮銆?#37817;?#32457;?#37832;?#39582;?#37711;?#37721;?#26440;炬暟?#27368;涓?#37510;?/p><p>銆銆浣?#26473;?#27996;涘唴瀹归潪甯?#26462;?#38171;?#38000;屼笖鍒?#28003;?#38000;?#38315;氬父浼氬亸鍚?#27996;?#37813;璋撶垎娆?#37510;?#26473;?#28003;?#23536;?#23075;?#32495;绘祦閲忎?#28616;劧浼氬?#25117;ご閮?#37727;嗗?#20349;?#27697;劍锛屾棤?#30838;瀵?#39582;?#37721;?#28051;?#28598;?#38318;?#37714;嗗晢瀹跺舰?#22426;?#27352;鎯?#23534;?#37928;勬祦閲忎緵缁?#37510;?/p><p>銆銆闃?#38322;屽紑濮嬫敼鍙?#32475;栫暐銆?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?#27996;?/strong></span></p><p>銆銆鏈?#36423;?#29781;佺暐寰?#28000;?#32513;?#28051;涓嬫窐绯诲唴瀹?#37922;熸併?/p><p>銆銆浠?#28598;?#28003;?#37813;撳紑鎵?#37832;烘窐瀹?#38171;屼笌鍏?#29831;?#37828;?#37813;撳紑浜?#28051;涓?#32515;戠粶璐?#37911;?#25652;旂敤锛屼笉濡?#29831;?#37828;?#37813;撳紑浜?#28051;鏈?#23057;堣垂绫荤數瀛?#37714;?#37911;?#37510;?#26473;?#28051;?#37714;?#37911;?#37928;勫唴瀹?#37929;稿綋搴炴?#20635;捣閲?#38171;屽ぉ閲忕骇鍐?#28729;?#37928;?ldquo;?#31807;鍝佽喘鐗?#37816;?#37719;?rdquo;銆?/p><p>銆銆棣?#28766;?#37813;?#22189;鐜?#37928;?ldquo;娣?#28729;?#28598;存潯”锛岀悊鎵?#32139;?#21159;鐨?#37828;?#28051;绉嶅唴瀹?#38171;屾垨鍙?#28729;氫綅?#22426;娑堣垂棰?#37737;?#37928;?#28000;?#37827;?#28598;存潯銆?/p><p>銆銆浣嗗線涓?#37928;?#32491;?#28028;?#37832;夊?#20511;揣銆?#36423;?#28052;版竻鍗?#37510;?#37922;风?#28854;寖锛堝鏋?#37828;?#28610;崇敓鎵撳紑娣?#28729;?#38171;岀?#23338;埌鐨?#37828;?#37910;?#38315;?#29723;?#38171;?#32475;?#32475;?#38171;?#38318;?#37828;?#28729;?#37928;勫唴瀹规?#22446;潡銆?#37721;?#28051;?#26473;囨窐瀹?#28598;存潯鐨勫唴瀹?#37707;?ldquo;璧?#29825;?rdquo;绫?#38171;?#38000;?#26473;?#27996;?#37833;垮潡鐨勫唴瀹?#37707;?ldquo;瀵艰喘”绫?#37510;?#28003;?#38322;戠?#25782;畻鏂?#23534;忓墠鑰?#28000;PC?#36127;涓?#38171;?#37722;?#38000;?#28000;PS?#36127;涓?#37510;?/p><p>銆銆杩?#27996;涘唴瀹?#37816;夌収闃?#38322;?#37928;?#28729;?#28052;?#38171;?#29722;?#32457;颁负“鍏?#37737;熷唴瀹?rdquo;銆?/p><p>銆銆鑰屽簳閮?#28725;艰埅鐨勭浜屼釜鎸夐挳“寰?#23075;?rdquo;锛?#37813;鎸?#37722;?#37928;?#38171;?#29722;?#32457;颁负“绉佸?#29111;唴瀹?rdquo;銆?#37711;?#37737;熷拰绉佸?#29111;唴瀹?#37813;浜?#37922;?#37928;勪剑閲?#38171;岀?#25782;畻鏂?#23534;?#39582;?#28051;?#37929;?#37722;?#37510;?/p><p>銆銆涔?#37813;浠ュ墠鑰?#29722;?#32457;颁负鍏?#37737;熷唴瀹?#38171;屾槸鍥犱负鍐?#28729;?#37922;?#27996;?#38000;?#37813;杩?#29723;?#37928;勫唴瀹?#37922;?#27996;?#38171;屾槸鏈?#37733;?#28729;氭牸寮?#37928;?#38171;屼笖?#25956;鎴?#28052;?#37828;?#37837;规嵁?#30075;?#30838;鍖归厤鐨?#37510;?#38000;?#37722;?#38000;?#37928;勭?#20344;?#29111;唴瀹?#38171;岀敓浜?#37837;?#23534;?#39582;?#28051;?#23534;?#29835;?#38171;岀敤鎴?#28052;?#37828;?#37733;犱负鍏虫敞浜嗘煇涓?#37712;?#28729;规簮锛?#37721;兘灏?#37828;?#28051;晢閾?#38171;屼篃鍙兘鏄?#28051;涓?#37712;?#28729;?#37922;?#27996;?#38000;?#38171;?#37813;?#28028;氳杩?#27996;涘唴瀹?#29785;?#26440;?#37510;?/p><p>銆銆涓?#23057;堣垂瀵?#37714;?#37929;?#37711;?#37928;勫唴瀹?#38171;屽ぇ閮?#37714;?#37807;呭喌涓?#38171;?#39582;舵病鏈?#28598;?#23534;?#37928;勬?#33333;?#22559;?#37510;?#28051;?#30226;瀵规煇鐨?#29723;?#26473;?#29723;?#28000;?#32513;?#37928;?#37826;?#28699;?#38171;?#37832;?#37721;兘?#28266;“鏈夊?#20511;揣”鎴?#38000;?ldquo;蹇?#28052;版竻鍗?rdquo;涔?#32491;?#37928;勬?#22446;潡涓?#37832;夐暱杈?#37719;?#39582;?#37928;勬洕鍏?#37832;?#38171;屾崲鑰岃█涔?#38171;屽唴瀹?#37922;?#27996;?#38000;?#37721;?#28000;?#37816;?#37832;?#26473;欑瘒鏂囩?#29371;暱杈?#37719;?#39582;?#37928;勪剑閲?#38014;?#37721;?#37510;?#26473;?#37828;?#23075;?#32495;诲唴瀹?#38171;屼笌鍏跺?#20904;唴瀹?#39582;?#37721;伴潪甯?#28051;?#37722;?#37928;?#37734;?#37826;?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?#28051;?/strong></span></p><p>銆銆闃?#38322;?#37928;?#32475;栫暐璋?#37825;村湪浜?#28051;?#28051;?#37826;归潰锛?/p><p>銆銆1銆侀紦鍔?#37832;?#28051;瀹氱?#22247;箙鐨勫唴瀹?#37922;?#27996;?#38171;堝綋?#21159;涔熷寘鎷?#29785;?#26864;戙?#37929;?#37822;?#38171;?#38171;屼竴鍙?#29831;?#37716;犱竴鍫嗗?#21975;搧鐓?#37911;?#37928;?#37721;?#37714;楁竻鍗曞湪浠?#28598;?#23480;茬?#24531;緢灏?#29785;?#27996;?#37510;?/p><p>銆銆2銆佸湪鍏?#37737;熷唴瀹?#38322;?#37928;勪剑閲?#29825;$畻涓婂仛浜?#28598;?#37714;闃?#37826;?#37928;?#29835;?#37825;?#37510;?#28051;浠紺PS锛?#37813;?#38340;?#38339;?#38322;?#32495;绘彁璧?#37928;??#22426;锛屽墿涓?#37928;??#22426;锛屽唴瀹?#37922;?#27996;?#38000;?#37721;兘绔嬪埢鑾峰緱鍏?#28051;?#37928;?0%锛?#28052;?#28751;?#37828;?#37825;?#28051;狢PS鐨?%锛?#38171;?#26473;?#37832;??#22426;锛?#37929;稿綋浜?3%锛?#29722;?#32515;?#37711;?#29863;?#38322;戞睜锛岀敱闃?#38322;?#26473;?#29723;屽姩鎬?#37714;?#38320;?#37510;傚ぇ?#22183;涓?#38171;屽氨鏄?#28725;?#37813;璋撳?#34249;唴瀹?#28003;?#37721;兘杞寲涓嶉珮杩?#29723;?#37813;舵?#20341;?/p><p>銆銆闃?#38322;?#27996;?#28000;?#39582;?#37722;?#37716;╠aren.taobao.com锛屼腑鏂?#37722;嶅瓧鍙?#38339;?#38322;?#37714;?#28003;?#39582;?#37721;?#37510;?#37721;?#32457;?#29781;佸湪涓?#39582;?#38322;屾姇鍏?00浜挎潵鎵舵?#20344;唴瀹?#37510;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20170920103154.jpg" alt="闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;? /></p><p>銆銆璇锋敞鎰?#28051;?#37826;?#37928;?#26864;?#38316;撴?#26336;ǹ銆?/p><p>銆銆鍩?#27996;庤韩浠芥爣绛?mdash;—瀹?#37826;规?#35268;嵁鍏?#28003;?#37807;呭喌锛岃祴浜?#28051;?#37722;?#37928;勬爣绛?#38171;屾瘮濡?#37733;?#37826;?#32491;?#37510;佺煭瑙?#26864;?#32491;?#37510;?#28051;绘挱绫?#38171;?#28051;嶅紑搴?#38171;?#37510;佺孩浜?#32491;?#38171;堝紑搴?#37928;?#38171;?#37510;佹?#27194;コ閮?#38171;?#28051;鑸?#38003;?#37722;?#37832;夌?#24533;邯鍏?#37721;?#38171;?#32475;?#32475;?#37510;?#37817;?#29831;?#38171;?#26473;?#32457;嶈韩浠芥爣绛鹃珮杈?#28051;婄櫨涓?mdash;—鍐?#28729;?#37922;?#27996;?#38000;?#37721;?#28000;?#37922;?#29831;?#37929;稿簲鐨?#26864;?#38316;撳紑閫?#38171;?#39582;堕?#22557;?#35268;?#37734;?#26473;?#29723;屽啓浣?#37510;傛瘮濡傛?#26334;湪“鏈夊?#20511;揣”棰?#38316;?#38171;屽唴瀹?#28751;?#37832;?#37721;兘?#22189;鐜?#37813;嬫窐棣?#26916;?#37928;?#37832;夊?#20511;揣鏉垮潡銆?#28003;?#26864;?#38316;撴?#26336;ǹ鏈夐潪甯?#28051;?#37837;?#37928;勬牸寮?#29781;佹眰锛屼笉鏄?#37709;忓井?#20426;鍏?#37721;?#38317;f牱锛屾?#34411;?#28052;堝啓灏辨?#28052;堝啓锛屾?#34411;?#28052;堟帓鐗?#28751;辨?#28052;堟帓鐗?#37510;?/p><p>銆銆鍙?#28598;栧晢瀹?#28052;?#37721;?#28000;?#37721;戝竷V浠?#37716;?#38171;岀敱鍐?#28729;?#37922;?#27996;?#38000;?#37720;荤敵棰?#38171;?#37711;剁?#25782;畻鏂?#23534;?#28000;PM?#36127;涓?#37510;?/p><p>銆銆?#32139;涓?#38171;?#37832;?#37711;?#26473;?#37719;?#28051;?#37928;?#37922;?#27996;?#38000;?#38171;屽?#33580;粡瓒?#26473;?500浜?mdash;—鍏跺疄杩?#28051;暟瀛?#39582;?#28051;嶇畻澶?#28003;?#37510;傚井?#20426;鍏?#37721;?#37832;?#37711;?#26473;?#37719;?#28051;?#37928;?#38171;?#37721;堟湁澶氬?#25117;憿锛?/p><p>銆銆鑰屽浜?#38339;?#38322;屾潵璇?#38171;屽唴瀹?#37832;?#37825;?#32514;?#29785;?#27996;?#37825;?#28051;?#23075;?#32495;昏惀閿璧勬?#24878;揣缂?#38171;屽晢瀹跺?#27692;緬鍥板鐨?#28766;?#28528;銆?#37812;戜釜浜?#29825;や负锛?#37832;鏂?#28051;瀛?#29840;?#37814;?#37928;?#27996;?#37930;?#29723;?#37916;?#38171;?#37711;?#38003;?#37722;?#38171;屼笌鍐?#28729;?#37828;?#37714;?#28051;嶅紑鐨?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?#37733;?/strong></span></p><p>銆銆鏈夎耽瀹跺氨鏈?#26440;?#28729;?#37510;?/p><p>銆銆?#27368;?#23475;鏄綋浠?#28051;?#29825;?#37928;?#26440;?#28729;?#28052;?#28051;锛屽湪璐?#37722;?#27996;?#28000;?#28052;?#37722;庨瓘鍒欒タ浜?#28000;?#28052;嬪墠锛岀櫨?#23475;鐨勮储鍔?#29723;?#37916;?#28751;卞嚭浜嗛棶棰?#37510;?#37812;戜?#25787;棬鍐?#26473;?#37510;?#26473;?#28051;?#39582;寸櫨?#23475;鍙戠敓浜?#28000;涔?#37510;嬪垎鏋?#28729;?3銆?4銆?5骞?#37928;勭?#36346;喌銆?/p><p>銆銆?#27368;?#23475;?#27967;鍐?#37928;勪竴浠?#27996;嬫槸锛氬?#27692;皯鍏?#37721;?#37913;楁?#36328;潃?#27368;?#23475;鍐?#38171;坧in锛夌?#22446;瓙锛岃惀閿鏀?#37711;?#29863;氬緱鐩嗘弧閽垫弧锛?#37719;村拰?#27368;?#23475;涓鐐?#37711;崇郴閮芥病鏈?#37510;?/p><p>銆銆?#27368;?#23475;杩?#37832;?#37832;轰細涔?#38171;?/p><p>銆銆鎴戜笉?#29025;閬?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>鍗?#27996;?/strong></span></p><p>銆銆鏈?#28051;?#28751;?#37711;?#37721;?#38171;屾垜?#28229;鏈?#37832;轰細銆?/p><p>銆銆杩?#28729;跺皬鍏?#37721;?#37928;?#37714;?#28654;?#27996;?#37721;?#23536;?#26440;惧唴锛?#37711;?#37721;?#37722;嶅瓧鍙?#37826;版锛屼竴鍚?#37828;仛2B鐨?#37922;?#37808;?#38171;屼?#26495;?#37832;杩戝湪涓杞?#37719;?#27996;?#37510;?#37719;?#37929;栨姇瀹?#37722;?#38171;屼篃蹇?#26473;戝崄浜?#27996;烘?#25117;竵浜?mdash;—?#30254;璧?#28051;婇潰鐨勮耽瀹?#26440;?#28729;?#38171;屽綋?#21159;杩?#37828;?#28751;?#37711;?#37721;?#37510;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20170920103222.jpg" alt="闀?#37826;?#38171;氬唴瀹?#27996;?#28051;?#37928;勮耽瀹?#28051;?#26440;?#28729;? /></p><p>銆銆杩?#23534;?#37733;?#37721;?#37828;?#27996;嗗仛2C?#25328;2B鐨勪笉鍚?#37510;傚仛2C鐨?#38171;屽?#27692;緱濂?#37928;?#38171;?#37721;?#28000;?#28051;?#37721;?#23092;佽姵锛屽仛2B灏辨瘮杈冮粯榛樻棤闂?#27996;?#37510;?/p><p>銆銆寰?#26440;惧?#21613;嚭?#38889;濯?#28003;?#27996;?#38171;屽涓?#37721;?#23092;佽姵杩?#32457;?#27996;嬪緢鐪嬮噸銆?/p><p>銆銆浜?#37828;?#38171;?#28000;?#37712;冲?#27692;惎鍔?#28051;涓?C鐨?#26916;?#37929;?#37510;傚師?#28533;鎯?#37721;?ldquo;瑙佽瘑”锛屼笉宸?#23005;?#28610;藉拰鍙?#28598;?#28051;瀹?#28052;?#37828;?#37719;?#27996;?#37826;囧寲鍩洪?#25118;?#26337;祫鐨?#37719;?#28751;?#29723;?#29785;?#38338;诲仛鐨勪竴涓?#27996;?#37725;佹挒鍚?#38171;?#37813;浠?#37916;板湪鏀?#37722;?#37721;?ldquo;寰?#29785;?rdquo;銆?/p><p>銆銆杩?#28051;?#27996;?#37725;?#37928;勬牳蹇冨氨鏄?#23033;囪仛涓甯?#37728;滄鎵?#23075;?#37928;刱ol浠?#38171;屽鍚勭鏂伴椈銆佹枃绔?#26473;?#29723;?#29831;?#28598;?#29825;鸿冻銆傜敤鎴?#28051;?#29781;佹槸鍘荤湅浠?#28000;?#29831;?#28598;?#29825;鸿冻鐨?#37510;?/p><p>銆銆濡?#37835;?#28003;犵煡閬撳緪杈惧唴鏃?#39582;?#37712;?#26473;囧獟浣?#37832;?#29825;?#26473;?#28000;?#27996;?#37928;?#29831;?#38171;屼?#29361;細鐪嬪埌杩?#28051;?#27996;嬪湪寰?#29785;?#38322;?#37928;勫奖瀛?#37928;?#37510;?/p><p> 杞嚜锛氬井?#20426;鍏?#28028;?#37721;?鎵?#23075;?#38342;?/p>]]></description><category>IT浜掕仈缃?/category><comments>http://www.ojizl5.fun/internet/766.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=766</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=766&key=83824101</trackback:ping></item><item><title>SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#37711;?#38171;氬熀浜嶥ataGrid鐨勬暟鎹?#37828;剧ずa@b.com (楦″晞绫?http://www.ojizl5.fun/software/765.htmlTue, 19 Sep 2017 08:54:19 +0800http://www.ojizl5.fun/software/765.html銆銆EasyUI涓璂ataGrid浠?#29723;?#37837;煎舰寮?#28766;曠?#28888;暟鎹?#38171;?#39582;舵彁渚?#27996;?#28051;板瘜鐨?#38315;?#37815;?#37510;佹?#25489;簭銆?#37714;?#32513;勫拰缂?#26440;戞暟鎹?#37928;?#37716;熻兘鏀?#37816;併侱ataGrid鐨?#29825;?#29825;$敤浜?#32514;?#37933;紑鍙戞?#22549;棿锛?#39582;?#28051;?#28003;垮紑鍙?#27996;?#37723;?#28051;嶉渶瑕?#37711;?#28598;?#37911;?#28729;?#37928;勭煡璇?#37510;?#28729;?#37828;?#26462;?#38322;忕骇鐨勪笖鍔熻兘涓板瘜銆?#37719;?#37711;?#37837;?#37722;?#39582;?#37510;佸?#27692;?#26945;爣棰?#37510;佸?#33636;粨鍒楀拰椤?#38004;?#37721;?#37828;?#37711;?#28051;?#37928;勪竴灏?#38318;?#37714;?#37716;熻兘銆?/p>

銆銆1. 鍥為【涓涓嬬4鑺傚唴瀹?/strong>

銆銆?#28266;绗??#22957;涓?#38171;屾垜浠?#28003;跨敤EasyUI鎼缓濂?#27996;嗗乏渚?#38015;?#37719;?#37837;?#38171;?#39582;?#28051;?#38315;?#26473;囩偣鍑昏彍鍗?#38315;?#26916;瑰湪鍙?#26440;?#23534;瑰嚭瀵瑰簲鐨?#38315;?#26916;?#37719;?#37510;?#26473;欒?#20635;垜浠潵浣跨敤DataGrid鎶?#37721;?#26440;?#37928;?#38315;?#26916;?#37719;?#38318;?#37714;嗗?#27692;ソ銆?#37711;堢湅涓涓嬬4?#22957;涓?#37832;鍚?#37928;刟index.jsp鏂?#28000;?#38171;?#28052;?#37721;?#37721;?#29785;佺4?#22957;涓?#37928;勫唴瀹?#38171;?#38171;?/p>

銆銆2. 鍒涘缓DataGrid鎺?#28000;?#37928;?#37713;?#32457;?#37826;?#23534;?/strong>

銆銆DataGrid鏄剧?#28888;暟鎹?#37828;痡son鏍?#23534;?#37928;?#38171;?#37813;浠ユ垜浠?#26851;?#37711;?#29781;佹妸浠?#37722;?#37721;?#38014;?#37721;?#37714;?#37928;勬暟鎹?#37813;撳寘?#22426;Jason鏍?#23534;?#38171;岀?#36346;悗浼?#37714;板墠鍙版潵璁〥ataGrid?#28533;鏄剧ず锛?#26473;?#28051;鑺傛垜浠?#37711;?#28051;?#28000;?#37722;?#37721;?#38014;?#37721;栨暟鎹?#38171;?#37711;堣嚜宸?#37713;?#28598;?#28051;涓?json鏂?#28000;?#38171;?#38322;岄潰鏈塱son鏍?#23534;?#37928;勬暟鎹?#38171;岀?#36346;悗?#22428;浠潵璁〥ataGird鏄剧ず锛?#37711;堟妸鏄剧ず鍔熻兘鍋氬ソ锛屽啀璇锋眰鍚?#37721;版暟鎹?#37510;?/p>

銆銆?#22428;浠?#37711;?#28000;嶦asyUI鐨?#37721;?#38000;?#37826;囨。涓湅涓涓婦ataGrid鏄剧ず鐨勬牸寮?#37828;?#28000;涔堟牱鐨?#38171;屽涓嬪浘鎵绀?#38171;?/p>

銆銆?#22428;浠?#23052;跨潃鍙?#38000;?#37826;囨。寰涓嬬湅锛屾垜浠?#37721;?#37916;癉ataGrid绌洪棿鏄?#38315;?#26473;?lt;table>?#28533;鍒涘缓鐨?#38171;?#37832;?#28051;夌鍒涘缓鏂?#23534;?#38171;?/p>

銆銆绗?#28051;绉?#38171;?#28000;?#37916;?#37832;?#37928;勮〃鏍?#37711;冪礌鍒涘缓DataGrid锛屽湪HTML涓?#28729;?#28052;?#37714;?#37510;佽?#23677;拰?#26271;鎹?#37510;?/p>

銆銆绗?#27996;岀锛?#38315;?#26473;?lt;table>?#29219;绛?#37714;涘缓DataGrid鎺?#28000;?#37510;傚湪琛?#37837;煎?#21612;?#36328;敤<th>?#29219;绛?#28729;?#28052;?#37714;?#37510;?/p>

銆銆绗?#28051;夌锛?#28003;跨敤Javascript鍘?#37714;涘缓DataGrid鎺?#28000;?#37510;?/p>

銆銆?#22428;浠?#38322;?#37721;栫涓夌锛岀敤js鍘?#37714;涘缓DataGrid鎺?#28000;?#38171;岄鍏堟垜浠?#23536;?#37711;?#37713;?#28598;?#28051;涓?#28699;樺偍浜唈son鏍?#23534;忔暟鎹?#37928;?#37826;?#28000;?#38171;屽湪WebRoot/jquery-easyui-1.3.5/demo/datagrid/涓嬮潰鏈?#37713;犱釜json鏂?#28000;?#38171;屾垜浠?#38315;?#37815;?#28051;涓猟atagrid_data1.json锛屾嫹璐?#37714;癢ebRoot鐩綍涓?#38171;屼慨鏀?#28051;涓?#37721;傛暟锛?#32475;?#28028;氭垜浠?#29781;佹潵鏄剧ず杩?#28051;猨son鏂?#28000;?#38322;?#37928;勬暟鎹?#37510;傚涓?#38171;?/p>

JavaScript浠?#37934;?/div>
  1. {"total":10,"rows":[    
  2.     {"code":"FI-SW-01","productname":"Koi","price":10.00},    
  3.     {"code":"K9-DL-01","productname":"Dalmation","price":12.00},    
  4.     {"code":"RP-SN-01","productname":"Rattlesnake","price":12.00},    
  5.     {"code":"RP-LI-02","productname":"Iguana","price":12.00},    
  6.     {"code":"FL-DSH-01","productname":"Manx","price":12.00},    
  7.     {"code":"FL-DSH-01","productname":"Manx","price":12.00},    
  8.     {"code":"FL-DLH-02","productname":"Persian","price":12.00},    
  9.     {"code":"FL-DLH-02","productname":"Persian","price":12.00},    
  10.     {"code":"AV-CB-01","productname":"Amazon Parrot","price":92.00},    
  11.     {"code":"AV-CB-03","productname":"Amazon Parrot","price":92.00}    
  12. ]}    

銆銆?#22428;浠?#37721;?#28000;?#37930;嬪埌锛宩son?#26271;鎹?#37837;?#23534;?#37828;?#38171;?quot;key1": value1, "key2":value2銆傛瘡涓獀alue閲岄潰鍙?#37721;?#28000;?#37828;暟缁?#38171;屾暟缁勪腑淇濆瓨鏂?#37928;凧ason?#26271;鎹?#37510;?/p>

銆銆鏈?#27996;唈son鏂?#28000;?#38171;屾垜浠?#37818;?#28051;嬫潵灏?#37721;?#28000;?#29825;?#29825;ataGrid鎺?#28000;?#27996;?#38171;屾暣涓狣ataGrid閮?#37828;湪query.jsp涓?#29825;?#29825;?#37928;?#38171;?#37733;犱负瑕佹?#21095;ず鐨勫唴瀹?#28751;?#37828;痲uery.jsp涓?#37928;勫唴瀹?#37510;傛垜浠潵?#28229;?#28229;query.jsp椤甸潰锛?/p>

XML/HTML浠?#37934;?/div>
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>    
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">    
  3. <html>    
  4.   <head>    
  5.     <%@ include file="/public/head.jspf" %>    
  6.     <script type="text/javascript">    
  7.         $(function(){    
  8.             $('#dg').datagrid({       
  9.                 //璇锋眰?#26271;鎹?#37928;剈rl鍦板潃锛?#37722;庨潰浼氭?#35268;垚璇锋眰?#22428;浠嚜宸?#37928;剈rl    
  10.                 url:'datagrid_data.json',    
  11.                 loadMsg:'Loading......',    
  12.                 queryParams:{type:''},//鍙傛暟    
  13.                 //width:300,    
  14.                 fitColumns:true,//姘?#39582;宠嚜鍔?#28766;曞紑锛屽鏋?#29825;?#32515;?#23005;?#28766;炴?#38171;?#37714;?#28051;?#28028;?#37832;夋按骞虫?#27692;姩鏉?#38171;屾紨绀哄?#33636;粨鍒?#37827;?#38171;?#29831;?#37721;傛暟涓?#29781;佽缃?nbsp;   
  15.                 //鏄剧ず鏂戦┈绾?nbsp;   
  16.                 striped:true,    
  17.                 //?#32139;?#26271;鎹?#28598;?#37928;勬?#36346;?#28051;嶆崲琛?nbsp;   
  18.                 nowrap:true,    
  19.                 singleSelect:true, //濡?#37835;滀负鐪?#38171;?#37721;?#37711;佽鍗?#29723;屾?#21095;ず锛?#37711;?#37828;?#37716;熻兘澶?#37825;?nbsp;   
  20.                 //璁?#32515;?#37714;?#26916;?nbsp;   
  21.                 pagination:true,    
  22.                 rowStyler: function(index,row){    
  23.                     console.info("index" + index + "," + row)    
  24.                     if(index % 2 == 0) {    
  25.                         return 'background-color:#fff;';    
  26.                     } else {    
  27.                         return 'background-color:#ff0;';    
  28.                     }    
  29.                         
  30.                 },    
  31.                 //鍚?#37714;?#28766;炴?#38171;屼絾鏄?#26473;?#27996;?#37714;?#28751;?#28028;氬?#33636;?#25779;湪?#20047;渚?澶?#28751;?#28051;?#28028;氭敼鍙?#38171;屽綋瀹藉害澶?#27996;?50鏃?#38171;屼細鏄剧?#28888;?#27692;姩鏉?#38171;屼絾鏄?#37712;荤粨鐨?#37714;?#28051;嶅湪婊氬姩鏉?#37712;?nbsp;   
  32.                 frozenColumns:[[    
  33.                     {field:'checkbox',checkbox:true},    
  34.                     {field:'code',title:'缂?#37721;?,width:200}                     
  35.                 ]],    
  36.                 //閰?#32515;甦atagrid鐨?#37714;?#28699;楁     
  37.                 //field锛氬垪瀛楁鐨?#37722;?#32457;?#38171;屼笌json鐨刱ey鎹?#32513;?nbsp;   
  38.                 //title锛氬?#26945;爣棰?#38171;屾槸鏄剧ず缁?#27996;虹湅鐨?nbsp;   
  39.                 columns:[[                         
  40.                     {field:'productname',title:'绫?#37714;?#37722;?#32457;?,width:100,    
  41.                         //?#25956;?#28533;鏍?#23534;忓?#26663;綋?#22688;鍒?#37928;勫?#38171;?#26473;?#37733;?#37928;?#37828;?#37832;缁?#37928;勬暟鎹?nbsp;   
  42.                         formatter: function(value,row,index){    
  43.                         return "<span title=" +銆value + ">" + value + "</span>";    
  44.                     }    
  45.                 },        
  46.                     {field:'price',title:'浠?#37837;?,width:100,    
  47.                     styler: function(value,row,index){    
  48.                         //璁?#32515;綋?#22688;鍗?#37711;?#37837;?#37928;勬牱寮?#38171;?#26473;?#37733;?#37928;勫瓧绗?#28051;?#37929;?#37818;?#27996;?#32513;?nbsp;style灞炴?nbsp;   
  49.                         //console.info("val:" + value + ",row:" + row + ",index:" + index)    
  50.                         if (value < 20){    
  51.                             return 'color:red;';    
  52.                         }    
  53.                     }       
  54.                     }    
  55.                 ]]        
  56.             });     
  57.         });    
  58.     </script>    
  59.   </head>    
  60.       
  61.   <body>    
  62.     <table id="dg"></table>    
  63.   </body>    
  64. </html>    

銆銆3. DataGrid鎺?#28000;?#37928;?#28766;炴?/strong>

銆銆?#22428;浠?#37721;?#28000;?#37930;嬪埌锛屼?#36328;敤js鍘?#37714;涘缓DataGrid鎺?#28000;?#37928;?#29831;?#38171;?#37721;?#29781;?#28051;涓?lt;table>?#29219;绛?#37719;?#37721;?#38171;屼富瑕?#38318;?#37828;湪js涓?#28729;屾垚銆侱ataGrid鐨?#37818;?#28000;跺緢寮?#28598;?#38171;?#26473;?#38322;屾垜浠?#28051;?#29781;佸仛涓涓嬪熀鏈?#37928;?#37828;剧ず锛屾洿澶?#37711;?#28000;栫殑鍔熻兘鍙?#28000;?#37721;傜収EasyUI鐨勫紑鍙?#37826;囨。銆傛垜浠?#37916;板湪閽堝涓婇潰鐨剄uery.jsp鏂?#28000;跺仛涓涓嬪垎鏋?#38171;?/p>

銆銆棣?#37711;圖ataGrid鎺?#28000;?#37832;?#28051;?#32457;?#28766;炴?#38171;?#28051;涓?#37828;疍ataGrid灞炴?#38171;?#26473;?#37832;?#28051;涓?#37828;?#37714;?#28766;炴?#37510;傞【鍚嶆濅箟锛孌ataGrid灞炴?#37828;?#32513;?#37825;?#28051;狣ataGrid鎺?#28000;舵坊鍔?#37928;?#28766;炴?#38171;?#38000;?#37714;?#28766;炴?#37828;?#38333;堝?#35268;煇涓鍒?#37928;?#37510;傛瘡涓?#28766;炴?#37832;夊緢澶?#38171;?#26473;?#38322;?#37721;仛浜?#28051;浜涘熀鏈?#37928;?#29999;哥敤鐨?#28766;炴?#37510;?/p>

銆銆DataGrid灞炴?#38322;?#37832;閲?#29781;?#37928;?#37828;痗olumns灞炴?#38171;?#28729;?#37828;?#28051;涓暟缁?#38171;?#37721;?#28000;?#37714;涘缓澶氬垪锛?#29785;?#28051;嬮潰鐨?#37812;?#37733;?#38171;?/p>

銆銆?#22428;浠潵?#28229;涓媍olumns灞炴?#28051;?#37832;?#37725;?#27996;?#32513;嗚妭锛?/p>

銆銆鍒?#28766;炴?#28051;?#38171;宖ield琛?#32448;哄?#26945;鍚?#32457;?#38171;屽?#29808;簲涓巎son?#26271;鎹?#37928;刱ey锛岀?#36346;悗title鏄?#29781;佹?#21095;ず缁欑敤鎴风湅鐨勬爣棰?#38171;?#29785;乹uery.jsp鏂?#28000;?#28051;?#38171;?#26473;?#37832;?#37711;?#28000;?#28051;浜涘熀鏈?#28766;炴?#37721;?#28000;?#37721;傜収EasyUI鏂囨。銆?#37714;?#28766;炴?#28051;瘮杈?#38322;?#29781;?#37928;勪篃?#30254;杈冨父?#25956;鐨勪袱涓?#28766;炴?#37828;痜ormatter?#25328;styler锛?#37714;?#37714;?#37828;敤?#28533;鏍?#23534;忓?#26663;綋?#22688;鍒?#37928;勫煎拰璁?#32515;?#37719;?#37711;?#37837;兼牱寮?#37928;?#38171;屾垜浠?#28051;?#29781;佹潵?#28229;涓涓?#26473;?#28051;?#28051;?#28766;炴?#38171;?/p>

銆銆?#22428;浠?#37711;?#28003;撴潵鍒?#37835;?#28051;涓?#28051;婇潰query.jsp涓?#37928;刢olumns灞炴?#28051;?#38171;屽浣?#28003;跨敤杩?#28051;?#28051;?#37714;?#28766;炴?#37928;?#38171;?/p>

JavaScript浠?#37934;?/div>
  1. {field:'productname',title:'绫?#37714;?#37722;?#32457;?,width:100,    
  2.     //?#25956;?#28533;鏍?#23534;忓?#26663;綋?#22688;鍒?#37928;勫?#38171;?#26473;?#37733;?#37928;?#37828;?#37832;缁?#37928;勬暟鎹?nbsp;   
  3.     formatter: function(value,row,index){    
  4.         return "<span title=" +銆value + ">" + value + "</span>";//璁?#32515;负?#32054;鏍囨斁涓?#37720;?#37828;剧ずvalue鍊?nbsp;   
  5.     }    
  6. },        
  7. {field:'price',title:'浠?#37837;?,width:100,    
  8.     styler: function(value,row,index){    
  9.         //璁?#32515;綋?#22688;鍗?#37711;?#37837;?#37928;勬牱寮?#38171;?#26473;?#37733;?#37928;勫瓧绗?#28051;?#37929;?#37818;?#27996;?#32513;?nbsp;style灞炴?nbsp;   
  10.             //console.info("val:" + value + ",row:" + row + ",index:" + index)    
  11.         if (value < 20){ //濡?#37835;渧alue鍊?#28751;?#27996;?0    
  12.             return 'color:red;'//灏唙alue鍊?#37828;剧?#36720;负绾㈣壊    
  13.         }    
  14.     }       
  15. }    

銆銆鐒跺悗?#22428;浠?#37712;嶇湅?#28229;DataGrid鎺?#28000;?#37928;勪竴浜涘?#28852;?#38171;?/p>

銆銆url琛?#32448;?#29781;佹?#21095;ず鐨勬暟鎹潵?#31790;锛?#26473;?#38322;?#29825;?#32515;垚datagrid_data.json琛?#32448;烘暟鎹潵?#31790;鏄?#26473;?#28051;猨son鏂?#28000;?#38171;屾?#24807;湪WebRoot鐩綍涓?#27996;?#38171;?/p>

銆銆loadMsg琛?#32448;?#37716;?#26462;芥暟鎹?#26473;囩▼涓?#37828;剧ず鐨勪俊?#20229;锛?/p>

銆銆queryParams琛?#32448;轰紶缁?#37722;?#37721;?#37928;?#37721;傛暟锛屽湪杩?#38322;岀敤涓?#37714;?#38171;?#37733;犱负?#22428;浠?#37929;墠杩樻病鏈夊拰鍚?#37721;?#37711;宠仈涓?#38171;?#37721;?#37828;?#37828;剧ず涓涓猨son鏂?#28000;?#38171;?#37722;庨潰浼氱敤鍒?#38171;?/p>

銆銆fitColums璁?#32515;负true鍚?#29723;?#32448;烘按骞宠嚜鍔?#28766;曞紑锛岃嚜閫傚簲缃戞牸鐨?#28729;藉害锛屽姝?#29825;?#32515;?#38171;屾按骞虫柟鍚戝氨涓?#28028;?#37832;夋?#27692;姩鏉?#27996;?#38171;屼篃涓嶇敤璁?#32515;?#28729;藉害浜?#38171;?/p>

銆銆width鏄?#28729;藉害锛屽鏋滄暟鎹?#26473;?#38336;?#37828;剧ず涓?#28051;?#38171;屾按骞虫柟鍚戝氨浼氬嚭鐜版?#27692;姩鏉?#38171;?/p>

銆銆striped璁?#32515;负true鍚?#29723;?#32448;?#37828;剧ず鏂戦┈绾?#38171;?#26473;?#37828;?#28051;涓?#37828;剧?#28888;牱寮?#38171;?#29831;?#28051;涓嬩?#36328;煡锛?/p>

銆銆nowrap璁?#32515;负true鍚?#29723;?#32448;哄綋?#26271;鎹?#28598;?#37928;勬?#36346;?#28051;嶆崲琛?#38171;?#37722;?#37714;欐煇涓琛屾暟鎹?#28598;?#37928;勬?#36346;?#28028;氭崲琛?#38171;屼?#27693;瘮杈?#38341;剧湅锛?/p>

銆銆pagination璁?#32515;负true鍚?#29723;?#32448;哄紑鍚?#37714;?#26916;?#37716;熻兘锛?/p>

銆銆singleSelect璁?#32515;负true鏃?#38171;?#37721;?#37711;佽?#31295;嬀閫?#37719;?#29723;?#38171;?#37711;?#38315;?#37716;熻兘澶?#37825;?#38171;屼富瑕佺敤浜?#37832;?#22688;?#28528;涓鍒?#37928;?#28598;?#38315;夋锛?/p>

銆銆frozenColums鏄负浜?#29825;?#32515;?#37712;荤粨鍒?#38171;屽湪frozenColums涓?#29825;?#32515;?#37928;?#37714;?#38171;屼笉浼氭敼鍙樺ぇ灏?#37510;?#38322;岄潰濡?#37835;?#29825;?#32515;?#27996;唟field:'checkbox',checkbox:true},琛?#32448;?#26473;?#37828;?#28051;?#28598;?#38315;夋鍒?#38171;岀粰?#25956;鎴峰嬀閫夌敤鐨?#38171;屽鏋?#29825;?#32515;?#27996;?#28051;婇潰鐨剆ingleSelect锛?#38317;?#28052;?#37721;兘閫?#37815;?#28051;椤?#38171;屼笉?#20824;鍏?#38315;?#38171;?/p>

銆銆rowStyler鏄?#29825;?#32515;?#37813;鏈?#29723;?#37928;勬牱寮?#37928;?#38171;屼袱涓?#37721;傛暟?#36127;琛岀储寮曞拰琛?#38171;屼笂?#28528;璁?#32515;?#37928;?#37828;?#37707;舵暟琛屾槸鐧借壊锛屽?#22248;暟琛屾槸榛勮壊銆?/p>

銆銆绛?#32475;?hellip;…杩?#37832;?#37711;?#28000;朌ataGrid鎺?#28000;?#37928;?#28766;炴?#38171;?#37721;?#28000;?#37721;?#38000;僂asyUI鐨勬妧鏈?#37826;囨。锛屽湪杩?#38322;屽氨涓?#28051;涓瑙?#29831;?#27996;?#37510;?/p>

銆銆4. DataGrid?#26271;鎹?#37828;剧ず鐨勬?#22559;灉

銆銆濂?#27996;?#38171;?#28729;屾垚浜唓uery.jsp鍚?#38171;屾垜浠?#38322;?#37722;痶omcat锛岀?#36346;悗杩?#37711;?#37714;?#37722;?#37721;?#38171;岀偣鍑诲乏渚?#38015;?#37719;?#37837;?#37928;?#32491;?#37714;?#32480;$悊锛屽氨浼氬湪鍙?#26440;瑰嚭鐜?#28051;涓?#32491;?#37714;?#32480;$悊鐨?#38315;?#26916;?#37719;?#38171;岀?#36346;悗灏?#28028;?#37828;剧?#28888;垜浠?#37816;?#28729;?#37928;刯son?#26271;鎹?#38171;?#26473;?#28051;狫ason?#26271;鎹?#37828;垜浠嚜宸?#37824;惧湪WebRoot鐩綍涓?#37928;?#38171;?#37722;庨潰?#22428;浠?#28751;?#28028;氭妸json?#25328;struts鏁?#37722;?#38171;屽姩鎬?#37928;勮幏鍙?#28000;?#37722;?#37721;?#28028;?#26473;囨潵鐨刯son?#26271;鎹?#37510;?/p>

]]>?#33931;浠跺紑鍙?/category>http://www.ojizl5.fun/software/765.html#commenthttp://www.ojizl5.fun/http://www.ojizl5.fun/feed.asp?cmt=765http://www.ojizl5.fun/cmd.asp?act=tb&id=765&key=33675b20SSH鐢靛晢椤?#37929;?#28729;炴垬涔?#27996;?#38171;氬?#23678;垚?#26271;鎹?#25652;?#37928;勭骇?#20168;鏌?#29831;㈠拰鍒?#26916;?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/software/764.html</link><pubDate>Wed, 13 Sep 2017 08:53:38 +0800</pubDate><guid>http://www.ojizl5.fun/software/764.html</guid><description><![CDATA[<p>銆銆涓?#28051;鑺傛垜浠?#28729;屾垚浜咵asyUI鑿?#37719;?#37928;?#28729;?#37916;?#37510;?#26473;?#28051;鑺傛垜浠?#28051;?#29781;佹潵鍐?#28051;涓婥ategoryServiceImpl瀹?#37916;?#32491;?#38171;?#28729;屾垚?#26271;鎹?#25652;?#37928;勭骇?#20168;鏌?#29831;?#37510;?#28051;鑸?#26916;?#37929;?#28000;?#37722;?#23536;?#22688;?#20187;锛?#37711;堝仛service锛堟垜浠?#23052;?#37832;?#37814;?#37721;朌ao锛?#37832;鍚?#37712;嶆娊鍙?#38171;?#38171;屽?#27692;畬浜嗗?#23941;仛涓婇潰灞?#37510;?/p><p>銆銆?#28266;鍐?#28052;嬪墠锛?#37711;堢湅涓涓嬫暟鎹?#25652;?#28051;?#37928;勮〃鐨?#37807;呭喌锛?/p><div class="codeText"><div class="codeHead">SQL浠?#37934;?/div><ol start="1" class="dp-sql"> <li class="alt"><span><span class="keyword">drop</span><span> </span><span class="keyword">database</span><span> if exists shop;    </span></span></li> <li><span>/*鍒涘?#28888;暟鎹?#25652;?#38171;?#39582;?#29825;?#32515;?#32514;?#37934;?/    </span></li> <li class="alt"><span><span class="keyword">create</span><span> </span><span class="keyword">database</span><span> shop </span><span class="keyword">default</span><span> </span><span class="keyword">character</span><span> </span><span class="keyword">set</span><span> utf8;    </span></span></li> <li><span>    </span></li> <li class="alt"><span>use shop;    </span></li> <li><span>/*鍒?#38340;?#32480;$悊鍛?#29723;?/    </span></li> <li class="alt"><span><span class="keyword">drop</span><span> </span><span class="keyword">table</span><span> if exists account;    </span></span></li> <li><span>/*鍒?#38340;?#37727;嗗搧绫?#37714;?#29723;?/    </span></li> <li class="alt"><span><span class="keyword">drop</span><span> </span><span class="keyword">table</span><span> if exists category;    </span></span></li> <li><span>    </span></li> <li class="alt"><span>/*============================*/    </span></li> <li><span>/*      <span class="keyword">Table</span><span>锛氱?#24714;鍛?#29723;?#32513;?#37835;?nbsp;                      */    </span></span></li> <li class="alt"><span>/*============================*/    </span></li> <li><span><span class="keyword">create</span><span> </span><span class="keyword">table</span><span> account    </span></span></li> <li class="alt"><span>(    </span></li> <li><span>    /* 绠$悊鍛?#32514;?#37721;?#38171;岃嚜鍔?#28583;為暱 */    </span></li> <li class="alt"><span>    id <span class="keyword">int</span><span> </span><span class="keyword">primary</span><span> </span><span class="keyword">key</span><span> </span><span class="op">not</span><span> </span><span class="op">null</span><span> auto_increment,    </span></span></li> <li><span>    /* 绠$悊鍛?#37927;诲綍鍚?nbsp;*/    </span></li> <li class="alt"><span>    login <span class="keyword">varchar</span><span>(20),    </span></span></li> <li><span>    /* 绠$悊鍛?#28654;?#37722;?nbsp;*/    </span></li> <li class="alt"><span>    <span class="keyword">name</span><span> </span><span class="keyword">varchar</span><span>(20),    </span></span></li> <li><span>    /* 绠$悊鍛樺瘑鐮?nbsp;*/    </span></li> <li class="alt"><span>    pass <span class="keyword">varchar</span><span>(20)    </span></span></li> <li><span>);    </span></li> <li class="alt"><span>    </span></li> <li><span>/*============================*/    </span></li> <li class="alt"><span>/*     <span class="keyword">Table</span><span>锛氬?#21975;搧绫?#37714;?#29723;?#32513;?#37835;?nbsp;                     */    </span></span></li> <li><span>/*============================*/    </span></li> <li class="alt"><span><span class="keyword">create</span><span> </span><span class="keyword">table</span><span> category    </span></span></li> <li><span>(    </span></li> <li class="alt"><span>   /* 绫?#37714;?#32514;?#37721;?#38171;岃嚜鍔?#28583;為暱 */    </span></li> <li><span>   id  <span class="keyword">int</span><span> </span><span class="keyword">primary</span><span> </span><span class="keyword">key</span><span> </span><span class="op">not</span><span> </span><span class="op">null</span><span> auto_increment,    </span></span></li> <li class="alt"><span>   /* 绫?#37714;?#37722;?#32457;?nbsp;*/    </span></li> <li><span>   type <span class="keyword">varchar</span><span>(20),    </span></span></li> <li class="alt"><span>   /* 绫?#37714;?#37828;?#37722;︿负鐑?#37904;?#32491;?#37714;?#38171;岀儹鐐?#32491;?#37714;?#37813;?#37832;?#37721;兘鏄剧?#21700;湪棣?#26916;?/    </span></li> <li><span>   hot  bool <span class="keyword">default</span><span> </span><span class="keyword">false</span><span>,    </span></span></li> <li class="alt"><span>   /* 澶栭敭锛屾绫?#37714;敱鍝綅绠$悊鍛?#32480;$悊 */    </span></li> <li><span>   account_id <span class="keyword">int</span><span>,    </span></span></li> <li class="alt"><span>   <span class="keyword">constraint</span><span> aid_FK </span><span class="keyword">foreign</span><span> </span><span class="keyword">key</span><span>(account_id) </span><span class="keyword">references</span><span> account(id)    </span></span></li> <li><span>);    </span></li></ol></div><p>銆銆涓?#29781;佹湁涓?#23534;?#29723;?#38171;屽?#21975;搧绫?#37714;?#29723;ㄥ拰绠$悊鍛?#29723;?#38171;?#39582;?#28051;斿?#21975;搧绫?#37714;?#29723;?#28051;?#37819;?#28186;?#27996;?#28051;涓?#28598;栭敭鍏宠仈绠$悊鍛?#29723;?#37510;?#28052;?#28751;?#37828;?#37727;嗗?#20344;拰绠$悊鍛?#37828;?#28598;氬涓鐨?#37711;崇郴銆?#37916;板湪?#22428;浠紑濮?#32514;?#37712;欐煡璇?#37727;嗗搧鐨?#32491;?#37714;俊?#20229;锛岄渶瑕佺骇?#20168;绠$悊鍛?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>1. 瀹?#37916;扮骇?#20168;鏌?#29831;?#37826;规硶</strong></span></p><p>銆銆棣?#37711;堝湪CategoryService鎺?#37721;?#28051;?#28729;?#28052;?#29831;?#37826;规硶锛?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">interface</span><span> CategoryService </span><span class="keyword">extends</span><span> BaseService<Category> {    </span></span></li> <li><span>    <span class="comment">//鏌?#29831;?#32491;?#37714;俊?#20229;锛岀骇?#20168;绠$悊鍛?nbsp; </span><span>  </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type); </span><span class="comment">//浣跨敤绫?#37714;?#37928;?#37722;?#32457;版煡璇?nbsp; </span><span>  </span></span></li> <li><span>}   </span></li></ol></div><p>銆銆鐒跺悗?#22428;浠湪CategoryService鐨?#28729;?#37916;?#32491;籆ategoryServiceImpl涓?#28729;?#37916;?#26473;?#28051;?#37826;规硶锛?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Service</span><span>(</span><span class="string">"categoryService"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImpl </span><span class="keyword">extends</span><span> BaseServiceImpl<Category> </span><span class="keyword">implements</span><span> CategoryService {    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type) {    </span></span></li> <li><span>        String hql = <span class="string">"from Category c where c.type like :type"</span><span>;    </span></span></li> <li class="alt"><span>        <span class="keyword">return</span><span> getSession().createQuery(hql)    </span></span></li> <li><span>                .setString(<span class="string">"type"</span><span>, </span><span class="string">"%"</span><span> + type + </span><span class="string">"%"</span><span>).list();    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆?#28266;涓?#28051;狹odel涓垜浠?#38320;?#28051;涓?#37711;宠仈?#25950;瑙?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="comment">//Category绫?#28051;?nbsp; </span><span>  </span></span></li> <li><span><span class="annotation">@ManyToOne</span><span>(fetch = FetchType.EAGER)    </span></span></li> <li class="alt"><span><span class="annotation">@JoinColumn</span><span>(name = </span><span class="string">"account_id"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> Account getAccount() {    </span></span></li> <li class="alt"><span>    <span class="keyword">return</span><span> </span><span class="keyword">this</span><span>.account;    </span></span></li> <li><span>}    </span></li> <li class="alt"><span><span class="comment">//Account绫?#28051;?nbsp; </span><span>  </span></span></li> <li><span><span class="annotation">@OneToMany</span><span>(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = </span><span class="string">"account"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> Set<Category> getCategories() {    </span></span></li> <li><span>    <span class="keyword">return</span><span> </span><span class="keyword">this</span><span>.categories;    </span></span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆鐒跺悗?#22428;浠湪娴?#29831;?#32491;?#28051;?#23092;?#29831;?#28051;涓?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@RunWith</span><span>(SpringJUnit4ClassRunner.</span><span class="keyword">class</span><span>)    </span></span></li> <li><span><span class="annotation">@ContextConfiguration</span><span>(locations=</span><span class="string">"classpath:beans.xml"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImplTest {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="annotation">@Resource</span><span>    </span></span></li> <li><span>    <span class="keyword">private</span><span> CategoryService categoryService;    </span></span></li> <li class="alt"><span>        </span></li> <li><span>    <span class="annotation">@Test</span><span>    </span></span></li> <li class="alt"><span>     <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> testQueryJoinAccount() {    </span></span></li> <li><span>        <span class="keyword">for</span><span>(Category c : categoryService.queryJoinAccount(</span><span class="string">""</span><span>)) {    </span></span></li> <li class="alt"><span>             System.out.println(c);    </span></li> <li><span>             System.out.println(c.getAccount());    </span></li> <li class="alt"><span>        }    </span></li> <li><span>    }    </span></li> <li class="alt"><span>}    </span></li></ol></div><p>銆銆<span style="font-size: medium;"><strong>2. 绾ц仈鏌?#29831;?#28699;樺湪鐨勯棶棰?/strong></span></p><p>銆銆?#22428;浠湅涓涓嬫帶鍒跺彴鐨?#26440;撳嚭鍙?#28000;?#37930;嬪嚭锛?#28729;?#37721;?#27996;?#28051;?#23005;?#28051;鏉QL璇?#37721;?#38171;屼絾鏄垜浠?#37828;?#37828;?#37721;?#37836;?#29831;?#27996;?#28051;娆?#38171;屼负浠涔堜細鍙?#26473;?#28052;?#28598;?#29831;?#37721;?#37723;?#38171;?#26473;?#28751;?#37828;?#29999;?#29785;?#37928;?+N?#26870;棰?#37510;?#37813;璋?#37928;?+N?#26870;棰?#38171;屽氨鏄?#26851;?#37711;?#37721;戝嚭涓鏉?#29831;?#37721;?#37836;?#29831;㈠綋?#22688;瀵硅薄锛岀?#36346;悗鍙戝嚭N鏉?#29831;?#37721;?#37836;?#29831;?#37711;宠仈瀵硅薄锛?#37733;?#23005;?#37825;?#37916;?#37721;樺緱寰堜綆銆?#26473;?#38322;屽氨涓?#28051;?#28725;硅薄锛屽鏋?#37832;夋洿澶?#37928;勫?#30789;薄锛?#38317;?#37825;?#37916;?#28751;?#28028;氬ぇ鎵撴姌鎵?#27996;?#38171;屾垜浠?#29831;?#28641;?#28003;?#29785;?#37712;?#26473;?#28051;棶棰樺憿锛?/p><p>銆銆鍙兘澶?#28729;?#28028;?#37807;冲埌灏唂etch璁?#32515;?#37922;烣etchType.LAZY灏?#28051;?#28028;?#37721;戝?#27693;潯璇?#37721;?#27996;?#38171;屼絾鏄?#26473;欒偗瀹?#28051;?#29723;?#38171;?#37733;犱负璁?#32515;垚LAZY鍚?#38171;屾垜浠?#28751;辨嬁涓?#37714;癆ccount瀵硅薄浜?#38171;屾瘮杈冨ソ鐨勮В鍐虫?#35268;硶鏄垜浠嚜宸卞啓hql璇?#37721;?#38171;屼?#36328;敤join fetch銆?#37711;?#28003;撶湅淇?#37824;?#37722;?#37928;凜ategoryServiceImpl瀹?#37916;?#32491;?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@Service</span><span>(</span><span class="string">"categoryService"</span><span>)    </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImpl </span><span class="keyword">extends</span><span> BaseServiceImpl<Category> </span><span class="keyword">implements</span><span> CategoryService {    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type) {    </span></span></li> <li><span>        String hql = <span class="string">"from Category c left join fetch c.account where c.type like :type"</span><span>;    </span></span></li> <li class="alt"><span>        <span class="keyword">return</span><span> getSession().createQuery(hql)    </span></span></li> <li><span>                .setString(<span class="string">"type"</span><span>, </span><span class="string">"%"</span><span> + type + </span><span class="string">"%"</span><span>).list();    </span></span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆left join琛?#32448;?#37711;宠仈Account涓璧锋煡璇?#38171;宖etch琛?#32448;?#28751;咥ccount瀵硅薄鍔?#37714;癈ategory涓?#37720;?#38171;?#26473;欐牱灏?#37721;?#28028;?#37721;戜竴鏉QL璇?#37721;?#27996;?#38171;?#39582;?#28051;?#26473;?#37733;?#37928;凜ategory涓?#28052;熷寘鍚?#27996;咥ccount瀵硅薄浜?#37510;?/p><p>銆銆<span style="font-size: medium;"><strong>3. 瀹屾垚鍒?#26916;?#37716;熻兘</strong></span></p><p>銆銆Hibernate涓?#37928;?#37714;?#26916;?#23536;?#32480;鍗?#38171;?#37721;渶瑕佽?#20906;敤涓?#28051;?#37826;规硶setFirstResult?#25328;setMaxResults鍗?#37721;?#38171;氭垜浠?#28103;?#37824;?#28051;涓婥ategoryService鎺?#37721;e拰瀹?#37928;?#28729;?#37916;?#32491;籆ategoryServiceImpl锛?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="comment">//CategoryService  </span><span>  </span></span></li> <li><span><span class="keyword">public</span><span> </span><span class="keyword">interface</span><span> CategoryService </span><span class="keyword">extends</span><span> BaseService<Category> {    </span></span></li> <li class="alt"><span>    <span class="comment">//鏌?#29831;?#32491;?#37714;俊?#20229;锛岀骇?#20168;绠$悊鍛?nbsp; </span><span>  </span></span></li> <li><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type, </span><span class="keyword">int</span><span> page, </span><span class="keyword">int</span><span> size); </span><span class="comment">//骞跺疄鐜?#37714;?#26916;?nbsp; </span><span>  </span></span></li> <li class="alt"><span>}    </span></li> <li><span>    </span></li> <li class="alt"><span><span class="comment">//CategoryServiceImpl  </span><span>  </span></span></li> <li><span><span class="annotation">@Service</span><span>(</span><span class="string">"categoryService"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImpl </span><span class="keyword">extends</span><span> BaseServiceImpl<Category> </span><span class="keyword">implements</span><span> CategoryService {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="annotation">@Override</span><span>    </span></span></li> <li><span>    <span class="keyword">public</span><span> List<Category> queryJoinAccount(String type, </span><span class="keyword">int</span><span> page, </span><span class="keyword">int</span><span> size) {    </span></span></li> <li class="alt"><span>        String hql = <span class="string">"from Category c left join fetch c.account where c.type like :type"</span><span>;    </span></span></li> <li><span>        <span class="keyword">return</span><span> getSession().createQuery(hql)    </span></span></li> <li class="alt"><span>                .setString(<span class="string">"type"</span><span>, </span><span class="string">"%"</span><span> + type + </span><span class="string">"%"</span><span>)    </span></span></li> <li><span>                .setFirstResult((page-<span class="number">1</span><span>) * size) </span><span class="comment">//浠庣鍑犱釜?#32017;濮嬫?#21095;ず  </span><span>  </span></span></li> <li class="alt"><span>                .setMaxResults(size) <span class="comment">//鏄剧ず鍑犱釜  </span><span>  </span></span></li> <li><span>                .list();    </span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆?#22428;浠湪娴?#29831;?#32491;?#28051;?#23092;?#29831;?#28051;涓?#38171;?/p><div class="codeText"><div class="codeHead">Java浠?#37934;?/div><ol start="1" class="dp-j"> <li class="alt"><span><span class="annotation">@RunWith</span><span>(SpringJUnit4ClassRunner.</span><span class="keyword">class</span><span>)    </span></span></li> <li><span><span class="annotation">@ContextConfiguration</span><span>(locations=</span><span class="string">"classpath:beans.xml"</span><span>)    </span></span></li> <li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> CategoryServiceImplTest {    </span></span></li> <li><span>    </span></li> <li class="alt"><span>    <span class="annotation">@Resource</span><span>    </span></span></li> <li><span>    <span class="keyword">private</span><span> CategoryService categoryService;    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="annotation">@Test</span><span>    </span></span></li> <li class="alt"><span>    <span class="keyword">public</span><span> </span><span class="keyword">void</span><span> testQueryJoinAccount() {    </span></span></li> <li><span>        <span class="keyword">for</span><span>(Category c : categoryService.queryJoinAccount(</span><span class="string">""</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>)) { </span><span class="comment">//鏄剧?#34425;涓椤?#38171;屾瘡椤?鏉℃暟鎹?nbsp; </span><span>  </span></span></li> <li class="alt"><span>            System.out.println(c + <span class="string">","</span><span> + c.getAccount());    </span></span></li> <li><span>        }    </span></li> <li class="alt"><span>    }    </span></li> <li><span>}    </span></li></ol></div><p>銆銆?#36127;姝?#38171;屾垜浠?#37712;?#28729;?#27996;哠ervice鐨?#37826;规硶浜?#38171;?#28729;屾垚浜嗗?#29808;?#21975;搧绫?#37714;?#37928;勭骇?#20168;鏌?#29831;㈠拰鍒?#26916;?#37716;熻兘銆?/p>]]></description><category>?#33931;浠跺紑鍙?/category><comments>http://www.ojizl5.fun/software/764.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=764</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=764&key=07866ec7</trackback:ping></item><item><title>SSH鐢靛晢椤?#37929;?#28729;炴垬涔嬪洓锛欵asyUI鑿?#37719;?#37928;?#28729;?#37916;?/title><author>a@b.com (楦″晞绫?</author><link>http://www.ojizl5.fun/software/763.html</link><pubDate>Mon, 11 Sep 2017 08:40:59 +0800</pubDate><guid>http://www.ojizl5.fun/software/763.html</guid><description><![CDATA[<p>銆銆涓?#28051;鑺傛垜浠?#28003;跨敤EasyUI鎼缓浜?#37722;?#37721;伴?#30008;潰鐨勬鏋?#38171;?#26473;?#28051;鑺傛垜浠?#28051;?#29781;?#28003;跨敤EasyUI?#22951;鏈?#32480;鍗?#28729;?#37916;?#37722;?#37721;拌彍鍗?#38171;?#37711;?#28751;?#32480;鍗?#37716;熻兘鍋氬嚭?#28533;锛?#37722;?#37832;熷啀缁?#32513;?#28051;板瘜銆?#38171;?a rel="nofollow" href="http://download.csdn.net/detail/eson_15/9534038" target="_blank">EasyUI涓?#26462;?#37734;板潃</a>锛?/p><p>銆銆<span style="font-size: medium;"><strong>1. 瀹?#37916;板乏渚?#38015;?#37719;?/strong></span></p><p>銆銆棣?#37711;堢湅涓涓嬫?#22559;灉鍥?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160504222956558.png" width="600" height="393" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔嬪洓锛欵asyUI鑿?#37719;?#37928;?#28729;?#37916;? /></p><p>銆銆?#22428;浠?#37721;?#28000;?#37904;?#37713;?ldquo;鍩?#37832;?#37823;?#28003;?rdquo;?#25328;“鍏?#28000;栨搷浣?rdquo;?#28533;鍒囨崲鑿?#37719;?#38315;?#26916;?#38171;屽湪鍏?#28003;?#37928;?#38315;?#26916;?#37712;?#38171;岀偣鍑?#28051;?#37722;?#37928;?#26473;?#37818;?#38171;屼?#27692;湪鍙?#28186;?#37828;剧?#21700;嚭?#28533;銆傛垜浠?#37711;堟?#23106;乏杈?#37928;勮彍鍗?#37707;氬嚭?#28533;銆?/p><p>銆銆?#20047;渚?#38015;?#37719;?#37712;?#28729;?#28051;?#29781;佹湁涓?#28051;?#38171;?ldquo;绫?#37714;?#32480;$悊”?#25328;“鍟嗗搧绠$悊”銆傛垜浠煡閬?#38171;屼笂涓?#22957;涓?#38171;屽湪aindex.jsp涓?#25652;?#28751;?#37722;?#37721;伴?#30008;潰鐨勬鏋舵惌?#32531;濂?#27996;?#38171;?#38317;?#28052;?#37916;板湪?#22428;浠?#37721;?#29781;佸?#27692;ソ杩?#28051;?#28051;?#29906;呴摼鎺?#38171;岀?#36346;悗鏀?#37714;癮index.jsp涓?#37929;稿簲鐨刣iv涓?#37719;?#37721;?#37510;?#37813;浠ユ垜浠?#37711;堝湪WebRoot鏂?#28000;跺す涓嬫?#26495;缓涓涓猼emp.jsp鏂?#28000;?#28003;滀负涓存?#36346;紑鍙?#37826;?#28000;?#38171;?#37733;犱负?#28266;杩?#38322;屽啓jsp鍙?#28000;?#37929;?#37818;?#23092;嬪嚭?#28533;锛?#32475;?#37825;堟灉鍙?#28000;?#37722;?#38171;屽啀灏嗗唴瀹?#28598;?#37714;跺埌aindex.jsp涓?#37928;?#37929;稿簲?#32133;缃?#37510;?/p><p>銆銆temp.jsp椤甸潰濡?#28051;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>    </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">style</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/css"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        #menu {    </span></li> <li><span>            width:200px;    </span></li> <li class="alt"><span>            /*border:1px solid red;*/    </span></li> <li><span>        }    </span></li> <li class="alt"><span>        #menu ul {    </span></li> <li><span>            list-style: none;    </span></li> <li class="alt"><span>            padding: 0px;    </span></li> <li><span>            margin: 0px;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li {    </span></li> <li class="alt"><span>            border-bottom: 1px solid #fff;    </span></li> <li><span>                </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li a {    </span></li> <li class="alt"><span>            /*鍏?#28751;哸?#29219;绛?#26462;?#37817;负鍧?#32510;?#37711;冪礌锛?#37813;嶈兘璁?#32515;?#28729;藉拰鍐呴棿璺?/    </span></li> <li><span>            display: block;    </span></li> <li class="alt"><span>            background-color: #00a6ac;    </span></li> <li><span>            color: #fff;    </span></li> <li class="alt"><span>            padding: 5px;    </span></li> <li><span>            text-decoration: none;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li a:hover {    </span></li> <li class="alt"><span>            background-color: #008792;    </span></li> <li><span>        }    </span></li> <li class="alt"><span>            </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">style</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>  <span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li><span>      </span></li> <li class="alt"><span>  <span class="tag"><</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"menu"</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span class="tag">></span><span>绫?#37714;?#32480;$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span class="tag">></span><span>鍟嗗搧绠$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>    </span></span></li> <li><span>  <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆temp.jsp涓?#37721;仛浜?#28051;?#28051;摼鎺?#38171;岀敤li灏佽?#21616;?#38155;潵骞舵斁鍒癲iv涓?#38171;屼笂?#28528;css鏄?#32513;?#26473;?#28051;?#28051;摼鎺?#29825;?#32515;牱寮?#37928;?#38171;岀?#36346;悗?#22428;浠紑鍚痶omcat锛屾祴璇?#28051;涓嬫?#22559;?#28355;涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160504224002915.png" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔嬪洓锛欵asyUI鑿?#37719;?#37928;?#28729;?#37916;? /></p><p>銆銆鍋氬ソ浜?#26473;?#28051;?#28051;?#29906;呴摼鎺?#37722;?#38171;屾垜浠?#28751;?#28751;佽涓?#28051;?#29906;呴摼鎺?#37928;剈l鎷?#29840;?#37714;癮index.jsp涓?#37928;勫乏渚?#38015;?#37719;?#37712;?#28729;?#37828;剧?#36720;綅缃?#38171;?#39582;剁畝瑕?#37928;勪慨鏀?#38171;屽涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160504224818410.png" width="600" height="295" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔嬪洓锛欵asyUI鑿?#37719;?#37928;?#28729;?#37916;? /></p><p>銆銆css閮?#37714;?#37929;?#37818;?#38000;冨埌aindex.jsp鐨刪ead?#29219;绛?#38322;?#37719;?#37721;?#37510;傜湅涓婇潰閭?#28051;猘?#29219;绛?#38171;?#38322;岄潰鏄痶itle灞炴?#38171;?#39582;?#28051;?#37828;痟ref锛?#37733;犱负?#22428;浠?#28051;?#37828;?#29882;?#26462;?#37714;?#37826;?#37928;?#26916;甸潰锛?#37733;犱负EasyUI灏?#26473;?#28051;涓?#26916;甸潰锛屾垜浠?#29781;佽鐐?#37713;?#37722;?#37928;?#37828;剧?#28888;斁鍒?#37721;?#26440;?#37928;則ab閫?#26916;?#37719;?#38317;?#38322;?#38171;?#37813;浠ユ垜浠?#37711;堟妸璺?#26462;?#37928;刟ction鍐欏湪title灞炴?#38322;?#38171;?#37722;庨潰鍐嶆敼銆?#37818;?#28051;嬫潵锛屾垜浠?#29781;?#38315;?#26473;囩偣鍑?#32491;?#37714;?#32480;$悊锛屽湪鍙?#26440;?#37928;?#38315;?#26916;?#37719;?#28051;?#23534;瑰嚭鍏?#28003;?#32491;?#28729;?#37928;?#37716;熻兘銆?/p><p>銆銆<span style="font-size: medium;"><strong>2. 瀹?#37916;?#37721;?#28186;ab閫?#26916;?#37719;?/strong></span></p><p>銆銆瀹?#37916;扮偣鍑诲乏杈硅彍鍗?#37837;?#23534;瑰嚭鍙?#26440;?#38315;?#26916;?#37719;?#37928;?#37716;熻兘锛岄渶瑕?#37716;?#37711;s浠?#37934;?#27996;?#37510;?#28003;跨敤EasyUI鐨勬?#29882;?#37828;?#38171;氶鍏堢偣鍑昏?#21620;摼鎺?#38171;屾嬁鍒?#26473;?#28051;?#29906;呴摼鎺?#37928;?#37722;嶅瓧锛?#37733;犱负寮瑰嚭?#28533;鐨?#38315;?#26916;?#37719;℃爣棰樺簲璇ュ拰杩?#28051;?#29906;呴摼鎺?#37928;?#37722;嶅瓧涓?#29297;鐨?#38171;屾瘮濡?ldquo;绫?#37714;?#32480;$悊”锛?#37906;跺悗鍒?#37826;?#37824;?#37722;嶅瓧鐨?#38315;?#26916;?#37719;?#37828;?#37722;?#23480;茬?#24531;?#27194;湪锛屽鏋滃?#27194;湪鍒?#37828;剧ず锛屽鏋?#28051;嶅?#27194;湪鍒?#37714;涘缓锛?#39582;?#37828;剧ず瑕佹?#21095;ず鐨勫唴瀹?#37510;傛垜浠潵?#28229;涓媕s閮?#37714;?#37928;?#28000;?#37934;?#38171;?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>    </span></span></li> <li><span>    $(function(){    </span></li> <li class="alt"><span>        $("a[title]").click(function(){    </span></li> <li><span>            var <span class="attribute">text</span><span> = $(this).text();    </span></span></li> <li class="alt"><span>            var <span class="attribute">href</span><span> = $(this).attr("title");    </span></span></li> <li><span>            //鍒?#37826;綋?#22688;鍙?#26440;?#37828;?#37722;?#23480;?#37832;?#37929;稿簲鐨則ab    </span></li> <li class="alt"><span>            if($("#tt").tabs("exists", text)) {    </span></li> <li><span>                $("#tt").tabs("select", text);    </span></li> <li class="alt"><span>            } else {    </span></li> <li><span>                //濡?#37835;滄病鏈?#37714;?#37714;涘缓涓涓?#37826;?#37928;則ab锛?#37722;?#37714;?#37714;囨崲鍒板綋?#22688;tag    </span></li> <li class="alt"><span>                $("#tt").tabs("add",{    </span></li> <li><span>                    title:text,    </span></li> <li class="alt"><span>                    closable:true,    </span></li> <li><span>                    content:'<span class="tag"><</span><span class="tag-name">iframe</span><span> </span><span class="attribute">title</span><span>=' + text + '</span><span class="attribute-value">src</span><span>=' + href + ' </span><span class="attribute">frameborder</span><span>=</span><span class="attribute-value">"0"</span><span> </span><span class="attribute">width</span><span>=</span><span class="attribute-value">"100%"</span><span> </span><span class="attribute">height</span><span>=</span><span class="attribute-value">"100%"</span><span> </span><span class="tag">/></span><span>'    </span></span></li> <li class="alt"><span>                    //href:?#31919;璁?#38315;?#26473;噓rl鍦板潃鍔?#26462;?#26473;滅▼鐨?#26916;甸潰锛屼絾鏄?#28000;?#28000;?#37828;痓ody閮?#37714;?nbsp;   </span></li> <li><span>                    //href:'send_category_query.action'    </span></li> <li class="alt"><span>                });    </span></li> <li><span>            }    </span></li> <li class="alt"><span>                    </span></li> <li><span>        });    </span></li> <li class="alt"><span>    });    </span></li> <li><span><span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆?#22428;浠潵鍒?#37835;?#28051;?#26473;欐js浠?#37934;?#38171;岄鍏堟嬁鍒癮?#29219;绛?#38171;屾敞鎰?#26473;?#28051;猘?#29219;绛?#37828;?#29999;itle灞炴?#37928;刟?#29219;绛?#38171;屼篃灏?#37828;垜浠?#28051;婇潰鐨?ldquo;绫?#37714;?#32480;$悊”瓒呴摼鎺?#38171;岀?#36346;?#24227;偣鍑?#38171;宑lick閲岄潰鍙堟湁涓涓猣unction锛?#26473;?#28051;猣unction閮?#39582;插暐浜嗗憿锛?#26851;?#37711;?#38014;?#37721;栧綋?#22688;?#25724;鎺?#37928;?#37722;嶅瓧锛?#37719;硉ext锛岀?#36346;悗閫?#26473;噒itle灞炴?#37815;?#37714;皍rl锛?#37733;犱负?#22428;浠?#37714;氬?#27693;妸url鍐?#37714;皌itle灞炴?#27996;?#38171;?#38171;?#37818;?#28051;嬫潵鍒?#37826;?#37828;?#37722;?#23480;茬粡鏈?#26473;?#28051;?#37722;嶅瓧鐨?#38315;?#26916;?#38171;坱ab锛?#38171;屽鏋?#37832;?#37714;?#37828;剧ず璇?#37722;嶅瓧鐨?#38315;?#26916;?#38171;屽鏋滄病鏈?#37714;?#37714;涘缓銆?/p><p>銆銆?#22428;浠潵鍏?#28003;撶湅?#28229;if閲岄潰鐨?#29831;?#37721;?#38171;岄鍏堥?#26473;?quot;#tt"鎷?#37714;?#37721;?#26440;?#38318;?#37714;?#37928;刯query瀵硅薄锛岀?#36346;悗璋冪敤tabs鏋?#38315;?#37826;规硶鍗虫嬁鍒皌ab瀵硅薄锛屽鏋?#37832;?#37714;?#26473;?#37733;瀟rue锛?#37722;?#37714;?#26473;?#37733;瀎alse銆?#38317;?#28052;坱abs()閲岄潰鐨勪袱涓?#37721;傛暟鏄?#28000;涔堟?#24532;?#37723;?#38171;?#26851;?#37711;堢涓涓?#37721;傛暟鏄?#37826;规硶鍚?#38171;岀浜屼釜鍙傛暟鏄?#32471;?#28051;涓?#37721;傛暟锛堟?#35268;硶锛夊?#29808;簲鐨?#37721;傛暟锛宼abs("exists", text)琛?#32448;?#29835;冪敤EasyUI鐨別xists鏂规硶锛?#37721;傛暟?#36127;text锛?#37719;冲垽鏂?#37722;嶅?#26942;负text鐨則ab鏄?#37722;?#28699;樺湪锛?#37722;屾牱锛屼?#23342;潰鐨則abs("select", text)琛?#32448;洪?#37815;?#37722;嶅?#26942;负text鐨則ab鏄剧ず锛宼abs("add", {})琛?#32448;?#37826;?#37714;涘缓涓涓猼ab锛寋}閲屾坊鍔?#37826;版坊鍔爐ab鐨勪竴浜涘?#28852;?#38171;歵itle琛?#32448;?#37722;嶅瓧锛宑losable:true琛?#32448;?#37832;?#37711;?#38338;?#37816;夐挳锛?#37719;?#37721;?#28051;?#29785;?#37928;?#37721;?#37721;?#38171;宑ontent琛?#32448;?#29781;佹?#21095;ず鐨勫唴瀹?#28000;?#37725;?#38014;峰緱锛?#37722;庨潰?#25956;<iframe>?#29219;绛?#28751;?#28051;涓?#26916;甸潰鐨勫唴瀹?#32513;欏寘杩涙潵锛?#26473;?#28051;?#26916;甸潰涓嶈兘鐩?#37818;?#29825;块棶锛屾槸閫?#26473;嘺ction璺?#26462;?#37928;?#38171;?#28000;巃ction鐨?#37722;嶅瓧涓?#37721;?#28000;?#37930;嬪嚭锛屾槸寮?#37711;EB-INF/category/query.jsp椤甸潰銆傚鏋滄垜浠湪璇?#26916;甸潰涓?#37928;刡ody?#29219;绛?#28051;?#38341;忎究鍐?#28051;?#37712;?#28729;?#38171;岀?#36346;悗閫?#26473;囩偣鍑诲乏杈硅彍鍗?#37837;?#38171;屽氨浼氬湪鍙?#26440;?#38315;?#26916;?#37719;?#28051;?#37828;剧?#21700;唴瀹?#37510;傚涓?#38171;?/p><p style="text-align: center;"><img src="http://www.ojizl5.fun/upload/20160504232441521.png" width="600" height="385" alt="SSH鐢靛晢椤?#37929;?#28729;炴垬涔嬪洓锛欵asyUI鑿?#37719;?#37928;?#28729;?#37916;? /></p><p>銆銆鏈鍚?#37814;奱index.jsp涓?#37928;?#28000;?#37934;佹斁鍒?#26473;?#38322;屾潵锛?/p><div class="codeText"><div class="codeHead">XML/HTML浠?#37934;?/div><ol start="1" class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span>%@ page </span><span class="attribute">language</span><span>=</span><span class="attribute-value">"java"</span><span> </span><span class="attribute">import</span><span>=</span><span class="attribute-value">"java.util.*"</span><span> </span><span class="attribute">pageEncoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span>%</span><span class="tag">></span><span>    </span></span></li> <li><span><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<span class="tag">></span><span>    </span></span></li> <li class="alt"><span><span class="tag"><</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li> <li><span><span class="tag"><</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    <span class="tag"><</span><span>%@ include </span><span class="attribute">file</span><span>=</span><span class="attribute-value">"/public/head.jspf"</span><span> %</span><span class="tag">></span><span>    </span></span></li> <li><span>    <span class="tag"><</span><span class="tag-name">style</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/css"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        #menu {    </span></li> <li><span>            width:60px;    </span></li> <li class="alt"><span>            /*border:1px solid red;*/    </span></li> <li><span>        }    </span></li> <li class="alt"><span>        #menu ul {    </span></li> <li><span>            list-style: none;    </span></li> <li class="alt"><span>            padding: 0px;    </span></li> <li><span>            margin: 0px;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li {    </span></li> <li class="alt"><span>            border-bottom: 1px solid #fff;    </span></li> <li><span>                </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li a {    </span></li> <li class="alt"><span>            /*鍏?#28751;哸?#29219;绛?#26462;?#37817;负鍧?#32510;?#37711;冪礌锛?#37813;嶈兘璁?#32515;?#28729;藉拰鍐呴棿璺?/    </span></li> <li><span>            display: block;    </span></li> <li class="alt"><span>            background-color: #00a6ac;    </span></li> <li><span>            color: #fff;    </span></li> <li class="alt"><span>            padding: 5px;    </span></li> <li><span>            text-decoration: none;    </span></li> <li class="alt"><span>        }    </span></li> <li><span>        #menu ul li a:hover {    </span></li> <li class="alt"><span>            background-color: #008792;    </span></li> <li><span>        }    </span></li> <li class="alt"><span>            </span></li> <li><span>    <span class="tag"></</span><span class="tag-name">style</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        </span></li> <li><span>    <span class="tag"><</span><span class="tag-name">script</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"text/javascript"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        $(function(){    </span></li> <li><span>            $("a[title]").click(function(){    </span></li> <li class="alt"><span>                var <span class="attribute">text</span><span> = $(this).text();    </span></span></li> <li><span>                var <span class="attribute">href</span><span> = $(this).attr("title");    </span></span></li> <li class="alt"><span>                //鍒?#37826;綋?#22688;鍙?#26440;?#37828;?#37722;?#23480;?#37832;?#37929;稿簲鐨則ab    </span></li> <li><span>                if($("#tt").tabs("exists", text)) {    </span></li> <li class="alt"><span>                    $("#tt").tabs("select", text);    </span></li> <li><span>                } else {    </span></li> <li class="alt"><span>                    //濡?#37835;滄病鏈?#37714;?#37714;涘缓涓涓?#37826;?#37928;則ab锛?#37722;?#37714;?#37714;囨崲鍒板綋?#22688;tag    </span></li> <li><span>                    $("#tt").tabs("add",{    </span></li> <li class="alt"><span>                        title:text,    </span></li> <li><span>                        closable:true,    </span></li> <li class="alt"><span>                        content:'<span class="tag"><</span><span class="tag-name">iframe</span><span> </span><span class="attribute">src</span><span>=</span><span class="attribute-value">"send_category_query.action"</span><span> </span><span class="attribute">frameborder</span><span>=</span><span class="attribute-value">"0"</span><span> </span><span class="attribute">width</span><span>=</span><span class="attribute-value">"100%"</span><span> </span><span class="attribute">height</span><span>=</span><span class="attribute-value">"100%"</span><span> </span><span class="tag">/></span><span>'    </span></span></li> <li><span>                        //href:?#31919;璁?#38315;?#26473;噓rl鍦板潃鍔?#26462;?#26473;滅▼鐨?#26916;甸潰锛屼絾鏄?#28000;?#28000;?#37828;痓ody閮?#37714;?nbsp;   </span></li> <li class="alt"><span>                        //href:'send_category_query.action'    </span></li> <li><span>                    });    </span></li> <li class="alt"><span>                }    </span></li> <li><span>                    </span></li> <li class="alt"><span>            });    </span></li> <li><span>        });    </span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">script</span><span class="tag">></span><span>    </span></span></li> <li><span><span class="tag"></</span><span class="tag-name">head</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>    </span></li> <li><span>    <span class="tag"><</span><span class="tag-name">body</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"easyui-layout"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"region:'north',title:'娆?#26473;庢潵鍒版?#25785;喘鍚?#37721;?#32480;$悊',split:true"</span><span> </span><span class="attribute">style</span><span>=</span><span class="attribute-value">"height:100px;"</span><span class="tag">></span><span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li><span>        <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"region:'west',title:'绯荤粺鎿?#28003;?,split:true"</span><span> </span><span class="attribute">style</span><span>=</span><span class="attribute-value">"width:200px;"</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>            <span class="comments"><!-- 姝?#28598;?#37828;剧ず鐨?#37828;?#32495;荤粺鑿?#37719;?nbsp;--></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"menu"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"easyui-accordion"</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"fit:true"</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>                <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">title</span><span>=</span><span class="attribute-value">"鍩?#37832;?#37823;?#28003;?quot;</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"iconCls:'icon-save'"</span><span class="tag">></span><span>       </span></span></li> <li><span>                    <span class="tag"><</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                        <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span> </span><span class="attribute">title</span><span>=</span><span class="attribute-value">"send_category_query.action"</span><span class="tag">></span><span>绫?#37714;?#32480;$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li><span>                        <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span class="tag">></span><span>鍟嗗搧绠$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                    <span class="tag"></</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li><span>                <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>                <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">title</span><span>=</span><span class="attribute-value">"鍏?#28000;栨搷浣?quot;</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"iconCls:'icon-reload'"</span><span class="tag">></span><span>    </span></span></li> <li><span>                    <span class="tag"><</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                        <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span class="tag">></span><span>绫?#37714;?#32480;$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li><span>                        <span class="tag"><</span><span class="tag-name">li</span><span class="tag">></span><span class="tag"><</span><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>=</span><span class="attribute-value">"#"</span><span class="tag">></span><span>鍟嗗搧绠$悊</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span>    </span></span></li> <li class="alt"><span>                    <span class="tag"></</span><span class="tag-name">ul</span><span class="tag">></span><span>    </span></span></li> <li><span>                <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>            <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>        <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"region:'center',title:'鍚?#37721;版搷浣?#26916;甸潰'"</span><span> </span><span class="attribute">style</span><span>=</span><span class="attribute-value">"padding:1px;background:#eee;"</span><span class="tag">></span><span>    </span></span></li> <li><span>            <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">id</span><span>=</span><span class="attribute-value">"tt"</span><span> </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"easyui-tabs"</span><span> </span><span class="attribute">data-options</span><span>=</span><span class="attribute-value">"fit:true"</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>                <span class="tag"><</span><span class="tag-name">div</span><span> </span><span class="attribute">title</span><span>=</span><span class="attribute-value">"绯荤粺缂?#37930;?#26916;甸潰"</span><span> </span><span class="attribute">style</span><span>=</span><span class="attribute-value">"padding:10px;"</span><span class="tag">></span><span>    </span></span></li> <li><span>                    姝?#28598;?#28000;?#37722;?#37828;剧ず鐩稿簲鐨?#32495;荤粺?#20426;?#20229;锛堝綋?#22688;鎿?#28003;?#32495;荤粺鐨?#32491;诲瀷锛屽綋?#22688;椤?#37929;?#37928;?#37737;?#37722;?#38171;?#32429;?#28000;?#37928;?#37929;?#37711;?#38320;?#32515;?#37812;?#38000;?#37828;剧?#28888;姤琛?nbsp;   </span></li> <li class="alt"><span>                <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li><span>                    </span></li> <li class="alt"><span>            <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>                        </span></span></li> <li><span>        <span class="tag"></</span><span class="tag-name">div</span><span class="tag">></span><span>       </span></span></li> <li class="alt"><span>    <span class="tag"></</span><span class="tag-name">body</span><span class="tag">></span><span>      </span></span></li> <li><span>    </span></li> <li class="alt"><span><span class="tag"></</span><span class="tag-name">html</span><span class="tag">></span><span>    </span></span></li></ol></div><p>銆銆寰堟槑鏄?#38171;?#28000;?#37934;佹病鏈?#37814;?#37721;?#38171;宑ss?#25328;js閮?#23075;峰湪涓涓猨sp椤甸潰浜?#38171;屾病鍏崇郴锛?#37722;庨潰浼?#28051;璧锋娊鍙栫殑銆?/p><p>銆銆鍒版?#36127;姝?#38171;屾垜浠?#28729;屾垚浜咵asyUI鑿?#37719;?#37928;?#28729;?#37916;?#38171;?#26473;?#38322;?#37721;?#37828;?#28751;?#28729;?#37916;?#37826;规硶瀹屾垚浜?#38171;?#37711;?#28003;?#37828;剧ず鐨勫唴瀹?#37722;庨潰鏍规嵁鍏?#28003;撻渶姹傚啀瀹屽杽銆?/p><p> </p>]]></description><category>?#33931;浠跺紑鍙?/category><comments>http://www.ojizl5.fun/software/763.html#comment</comments><wfw:comment>http://www.ojizl5.fun/</wfw:comment><wfw:commentRss>http://www.ojizl5.fun/feed.asp?cmt=763</wfw:commentRss><trackback:ping>http://www.ojizl5.fun/cmd.asp?act=tb&id=763&key=ba94d3ff</trackback:ping></item></channel></rss> <a href="http://www.ojizl5.fun/">江西时时彩三星和</a> <div style="position:fixed;left:-9000px;top:-9000px;"><form id="9hhtj"></form><em id="9hhtj"><font id="9hhtj"></font></em><pre id="9hhtj"><big id="9hhtj"></big></pre><rp id="9hhtj"></rp><meter id="9hhtj"><big id="9hhtj"></big></meter><output id="9hhtj"><delect id="9hhtj"></delect></output><font id="9hhtj"></font><form id="9hhtj"><nobr id="9hhtj"></nobr></form><nobr id="9hhtj"></nobr><pre id="9hhtj"><pre id="9hhtj"></pre></pre><track id="9hhtj"></track><rp id="9hhtj"><b id="9hhtj"></b></rp><rp id="9hhtj"><ol id="9hhtj"></ol></rp><big id="9hhtj"><em id="9hhtj"></em></big><rp id="9hhtj"><delect id="9hhtj"></delect></rp><nobr id="9hhtj"></nobr><p id="9hhtj"></p><big id="9hhtj"><b id="9hhtj"><em id="9hhtj"><font id="9hhtj"></font></em></b></big><big id="9hhtj"></big><ol id="9hhtj"><rp id="9hhtj"></rp></ol><big id="9hhtj"><big id="9hhtj"></big></big><font id="9hhtj"><sub id="9hhtj"><form id="9hhtj"><track id="9hhtj"></track></form></sub></font><output id="9hhtj"><b id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></b></output><em id="9hhtj"><rp id="9hhtj"><nobr id="9hhtj"><sub id="9hhtj"></sub></nobr></rp></em><mark id="9hhtj"><nobr id="9hhtj"><track id="9hhtj"><em id="9hhtj"></em></track></nobr></mark><mark id="9hhtj"><meter id="9hhtj"></meter></mark><ol id="9hhtj"><font id="9hhtj"></font></ol><ol id="9hhtj"><delect id="9hhtj"></delect></ol><meter id="9hhtj"><track id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></track></meter><nobr id="9hhtj"><pre id="9hhtj"></pre></nobr><dfn id="9hhtj"><mark id="9hhtj"></mark></dfn><ol id="9hhtj"><delect id="9hhtj"></delect></ol><p id="9hhtj"></p><em id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><dfn id="9hhtj"></dfn></nobr></em></em><output id="9hhtj"><pre id="9hhtj"></pre></output><output id="9hhtj"></output><sub id="9hhtj"><dfn id="9hhtj"></dfn></sub><delect id="9hhtj"><meter id="9hhtj"></meter></delect><form id="9hhtj"><rp id="9hhtj"></rp></form><meter id="9hhtj"></meter><font id="9hhtj"><sub id="9hhtj"></sub></font><form id="9hhtj"><form id="9hhtj"></form></form><ol id="9hhtj"></ol><rp id="9hhtj"><output id="9hhtj"><mark id="9hhtj"><meter id="9hhtj"></meter></mark></output></rp><output id="9hhtj"><pre id="9hhtj"></pre></output><rp id="9hhtj"></rp><rp id="9hhtj"><delect id="9hhtj"><b id="9hhtj"><font id="9hhtj"></font></b></delect></rp><pre id="9hhtj"><rp id="9hhtj"><p id="9hhtj"><mark id="9hhtj"></mark></p></rp></pre><form id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></em></form><em id="9hhtj"></em> <p id="9hhtj"><mark id="9hhtj"></mark></p><pre id="9hhtj"><ol id="9hhtj"></ol></pre><output id="9hhtj"><b id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></b></output><rp id="9hhtj"></rp><rp id="9hhtj"></rp><em id="9hhtj"></em><b id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"><nobr id="9hhtj"></nobr></dfn></delect></b><form id="9hhtj"><pre id="9hhtj"></pre></form><output id="9hhtj"><mark id="9hhtj"></mark></output><mark id="9hhtj"></mark><delect id="9hhtj"></delect><dfn id="9hhtj"><mark id="9hhtj"><delect id="9hhtj"><sub id="9hhtj"></sub></delect></mark></dfn><b id="9hhtj"></b><meter id="9hhtj"><big id="9hhtj"><rp id="9hhtj"><p id="9hhtj"></p></rp></big></meter><rp id="9hhtj"></rp><form id="9hhtj"></form><track id="9hhtj"></track><pre id="9hhtj"></pre><pre id="9hhtj"><rp id="9hhtj"><font id="9hhtj"><mark id="9hhtj"></mark></font></rp></pre><delect id="9hhtj"></delect><rp id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></em></rp><mark id="9hhtj"><nobr id="9hhtj"><pre id="9hhtj"><em id="9hhtj"></em></pre></nobr></mark><delect id="9hhtj"></delect><track id="9hhtj"></track><delect id="9hhtj"><sub id="9hhtj"></sub></delect><mark id="9hhtj"><nobr id="9hhtj"></nobr></mark><em id="9hhtj"></em><output id="9hhtj"><p id="9hhtj"><pre id="9hhtj"><em id="9hhtj"></em></pre></p></output><font id="9hhtj"><sub id="9hhtj"><nobr id="9hhtj"><track id="9hhtj"></track></nobr></sub></font><em id="9hhtj"></em><p id="9hhtj"></p><pre id="9hhtj"></pre><delect id="9hhtj"><pre id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></pre></delect><em id="9hhtj"></em><font id="9hhtj"><meter id="9hhtj"><font id="9hhtj"><b id="9hhtj"></b></font></meter></font><big id="9hhtj"><mark id="9hhtj"><output id="9hhtj"><dfn id="9hhtj"></dfn></output></mark></big><p id="9hhtj"></p><track id="9hhtj"><ol id="9hhtj"></ol></track><sub id="9hhtj"></sub><form id="9hhtj"><pre id="9hhtj"></pre></form><form id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><form id="9hhtj"></form></dfn></font></form><em id="9hhtj"></em><p id="9hhtj"><ol id="9hhtj"></ol></p><b id="9hhtj"><meter id="9hhtj"></meter></b><nobr id="9hhtj"></nobr><delect id="9hhtj"><delect id="9hhtj"></delect></delect><dfn id="9hhtj"><meter id="9hhtj"></meter></dfn><font id="9hhtj"><dfn id="9hhtj"></dfn></font><b id="9hhtj"><font id="9hhtj"><sub id="9hhtj"><nobr id="9hhtj"></nobr></sub></font></b><em id="9hhtj"><p id="9hhtj"></p></em> <nobr id="9hhtj"></nobr><sub id="9hhtj"></sub><big id="9hhtj"></big><pre id="9hhtj"><b id="9hhtj"></b></pre><nobr id="9hhtj"></nobr><sub id="9hhtj"><nobr id="9hhtj"></nobr></sub><big id="9hhtj"><em id="9hhtj"></em></big><ol id="9hhtj"></ol><font id="9hhtj"></font><output id="9hhtj"><delect id="9hhtj"><p id="9hhtj"><ol id="9hhtj"></ol></p></delect></output><track id="9hhtj"><rp id="9hhtj"></rp></track><mark id="9hhtj"><dfn id="9hhtj"></dfn></mark><font id="9hhtj"><dfn id="9hhtj"></dfn></font><delect id="9hhtj"></delect><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect><dfn id="9hhtj"><big id="9hhtj"></big></dfn><output id="9hhtj"><mark id="9hhtj"></mark></output><em id="9hhtj"><nobr id="9hhtj"></nobr></em><nobr id="9hhtj"><form id="9hhtj"></form></nobr><b id="9hhtj"></b><p id="9hhtj"><ol id="9hhtj"></ol></p><delect id="9hhtj"><mark id="9hhtj"></mark></delect><track id="9hhtj"><em id="9hhtj"><output id="9hhtj"><b id="9hhtj"></b></output></em></track><sub id="9hhtj"><em id="9hhtj"><p id="9hhtj"><b id="9hhtj"></b></p></em></sub><p id="9hhtj"></p><p id="9hhtj"><b id="9hhtj"><delect id="9hhtj"><big id="9hhtj"></big></delect></b></p><pre id="9hhtj"><ol id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></ol></pre><p id="9hhtj"><b id="9hhtj"></b></p><sub id="9hhtj"><big id="9hhtj"></big></sub><font id="9hhtj"><sub id="9hhtj"></sub></font><track id="9hhtj"><rp id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></rp></track><track id="9hhtj"><rp id="9hhtj"><output id="9hhtj"><dfn id="9hhtj"></dfn></output></rp></track><delect id="9hhtj"><meter id="9hhtj"><delect id="9hhtj"><ol id="9hhtj"></ol></delect></meter></delect><ol id="9hhtj"><font id="9hhtj"></font></ol><mark id="9hhtj"></mark><b id="9hhtj"><meter id="9hhtj"><big id="9hhtj"><em id="9hhtj"></em></big></meter></b><b id="9hhtj"><delect id="9hhtj"></delect></b><ol id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><nobr id="9hhtj"></nobr></dfn></font></ol><p id="9hhtj"><mark id="9hhtj"></mark></p><track id="9hhtj"></track><font id="9hhtj"><big id="9hhtj"></big></font><ol id="9hhtj"></ol><meter id="9hhtj"></meter><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect><track id="9hhtj"><rp id="9hhtj"><p id="9hhtj"><b id="9hhtj"></b></p></rp></track><p id="9hhtj"></p><pre id="9hhtj"></pre><b id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><em id="9hhtj"></em></dfn></font></b><nobr id="9hhtj"><pre id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></pre></nobr><pre id="9hhtj"><ol id="9hhtj"></ol></pre></div> <script>(function(){ var src = (document.location.protocol == "") ? "//js.passport.qihucdn.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33":"https://jspassport.ssl.qhimg.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <div style="position:fixed;left:-9000px;top:-9000px;"><form id="9hhtj"></form><em id="9hhtj"><font id="9hhtj"></font></em><pre id="9hhtj"><big id="9hhtj"></big></pre><rp id="9hhtj"></rp><meter id="9hhtj"><big id="9hhtj"></big></meter><output id="9hhtj"><delect id="9hhtj"></delect></output><font id="9hhtj"></font><form id="9hhtj"><nobr id="9hhtj"></nobr></form><nobr id="9hhtj"></nobr><pre id="9hhtj"><pre id="9hhtj"></pre></pre><track id="9hhtj"></track><rp id="9hhtj"><b id="9hhtj"></b></rp><rp id="9hhtj"><ol id="9hhtj"></ol></rp><big id="9hhtj"><em id="9hhtj"></em></big><rp id="9hhtj"><delect id="9hhtj"></delect></rp><nobr id="9hhtj"></nobr><p id="9hhtj"></p><big id="9hhtj"><b id="9hhtj"><em id="9hhtj"><font id="9hhtj"></font></em></b></big><big id="9hhtj"></big><ol id="9hhtj"><rp id="9hhtj"></rp></ol><big id="9hhtj"><big id="9hhtj"></big></big><font id="9hhtj"><sub id="9hhtj"><form id="9hhtj"><track id="9hhtj"></track></form></sub></font><output id="9hhtj"><b id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></b></output><em id="9hhtj"><rp id="9hhtj"><nobr id="9hhtj"><sub id="9hhtj"></sub></nobr></rp></em><mark id="9hhtj"><nobr id="9hhtj"><track id="9hhtj"><em id="9hhtj"></em></track></nobr></mark><mark id="9hhtj"><meter id="9hhtj"></meter></mark><ol id="9hhtj"><font id="9hhtj"></font></ol><ol id="9hhtj"><delect id="9hhtj"></delect></ol><meter id="9hhtj"><track id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></track></meter><nobr id="9hhtj"><pre id="9hhtj"></pre></nobr><dfn id="9hhtj"><mark id="9hhtj"></mark></dfn><ol id="9hhtj"><delect id="9hhtj"></delect></ol><p id="9hhtj"></p><em id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><dfn id="9hhtj"></dfn></nobr></em></em><output id="9hhtj"><pre id="9hhtj"></pre></output><output id="9hhtj"></output><sub id="9hhtj"><dfn id="9hhtj"></dfn></sub><delect id="9hhtj"><meter id="9hhtj"></meter></delect><form id="9hhtj"><rp id="9hhtj"></rp></form><meter id="9hhtj"></meter><font id="9hhtj"><sub id="9hhtj"></sub></font><form id="9hhtj"><form id="9hhtj"></form></form><ol id="9hhtj"></ol><rp id="9hhtj"><output id="9hhtj"><mark id="9hhtj"><meter id="9hhtj"></meter></mark></output></rp><output id="9hhtj"><pre id="9hhtj"></pre></output><rp id="9hhtj"></rp><rp id="9hhtj"><delect id="9hhtj"><b id="9hhtj"><font id="9hhtj"></font></b></delect></rp><pre id="9hhtj"><rp id="9hhtj"><p id="9hhtj"><mark id="9hhtj"></mark></p></rp></pre><form id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></em></form><em id="9hhtj"></em> <p id="9hhtj"><mark id="9hhtj"></mark></p><pre id="9hhtj"><ol id="9hhtj"></ol></pre><output id="9hhtj"><b id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></b></output><rp id="9hhtj"></rp><rp id="9hhtj"></rp><em id="9hhtj"></em><b id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"><nobr id="9hhtj"></nobr></dfn></delect></b><form id="9hhtj"><pre id="9hhtj"></pre></form><output id="9hhtj"><mark id="9hhtj"></mark></output><mark id="9hhtj"></mark><delect id="9hhtj"></delect><dfn id="9hhtj"><mark id="9hhtj"><delect id="9hhtj"><sub id="9hhtj"></sub></delect></mark></dfn><b id="9hhtj"></b><meter id="9hhtj"><big id="9hhtj"><rp id="9hhtj"><p id="9hhtj"></p></rp></big></meter><rp id="9hhtj"></rp><form id="9hhtj"></form><track id="9hhtj"></track><pre id="9hhtj"></pre><pre id="9hhtj"><rp id="9hhtj"><font id="9hhtj"><mark id="9hhtj"></mark></font></rp></pre><delect id="9hhtj"></delect><rp id="9hhtj"><em id="9hhtj"><nobr id="9hhtj"><big id="9hhtj"></big></nobr></em></rp><mark id="9hhtj"><nobr id="9hhtj"><pre id="9hhtj"><em id="9hhtj"></em></pre></nobr></mark><delect id="9hhtj"></delect><track id="9hhtj"></track><delect id="9hhtj"><sub id="9hhtj"></sub></delect><mark id="9hhtj"><nobr id="9hhtj"></nobr></mark><em id="9hhtj"></em><output id="9hhtj"><p id="9hhtj"><pre id="9hhtj"><em id="9hhtj"></em></pre></p></output><font id="9hhtj"><sub id="9hhtj"><nobr id="9hhtj"><track id="9hhtj"></track></nobr></sub></font><em id="9hhtj"></em><p id="9hhtj"></p><pre id="9hhtj"></pre><delect id="9hhtj"><pre id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></pre></delect><em id="9hhtj"></em><font id="9hhtj"><meter id="9hhtj"><font id="9hhtj"><b id="9hhtj"></b></font></meter></font><big id="9hhtj"><mark id="9hhtj"><output id="9hhtj"><dfn id="9hhtj"></dfn></output></mark></big><p id="9hhtj"></p><track id="9hhtj"><ol id="9hhtj"></ol></track><sub id="9hhtj"></sub><form id="9hhtj"><pre id="9hhtj"></pre></form><form id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><form id="9hhtj"></form></dfn></font></form><em id="9hhtj"></em><p id="9hhtj"><ol id="9hhtj"></ol></p><b id="9hhtj"><meter id="9hhtj"></meter></b><nobr id="9hhtj"></nobr><delect id="9hhtj"><delect id="9hhtj"></delect></delect><dfn id="9hhtj"><meter id="9hhtj"></meter></dfn><font id="9hhtj"><dfn id="9hhtj"></dfn></font><b id="9hhtj"><font id="9hhtj"><sub id="9hhtj"><nobr id="9hhtj"></nobr></sub></font></b><em id="9hhtj"><p id="9hhtj"></p></em> <nobr id="9hhtj"></nobr><sub id="9hhtj"></sub><big id="9hhtj"></big><pre id="9hhtj"><b id="9hhtj"></b></pre><nobr id="9hhtj"></nobr><sub id="9hhtj"><nobr id="9hhtj"></nobr></sub><big id="9hhtj"><em id="9hhtj"></em></big><ol id="9hhtj"></ol><font id="9hhtj"></font><output id="9hhtj"><delect id="9hhtj"><p id="9hhtj"><ol id="9hhtj"></ol></p></delect></output><track id="9hhtj"><rp id="9hhtj"></rp></track><mark id="9hhtj"><dfn id="9hhtj"></dfn></mark><font id="9hhtj"><dfn id="9hhtj"></dfn></font><delect id="9hhtj"></delect><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect><dfn id="9hhtj"><big id="9hhtj"></big></dfn><output id="9hhtj"><mark id="9hhtj"></mark></output><em id="9hhtj"><nobr id="9hhtj"></nobr></em><nobr id="9hhtj"><form id="9hhtj"></form></nobr><b id="9hhtj"></b><p id="9hhtj"><ol id="9hhtj"></ol></p><delect id="9hhtj"><mark id="9hhtj"></mark></delect><track id="9hhtj"><em id="9hhtj"><output id="9hhtj"><b id="9hhtj"></b></output></em></track><sub id="9hhtj"><em id="9hhtj"><p id="9hhtj"><b id="9hhtj"></b></p></em></sub><p id="9hhtj"></p><p id="9hhtj"><b id="9hhtj"><delect id="9hhtj"><big id="9hhtj"></big></delect></b></p><pre id="9hhtj"><ol id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></ol></pre><p id="9hhtj"><b id="9hhtj"></b></p><sub id="9hhtj"><big id="9hhtj"></big></sub><font id="9hhtj"><sub id="9hhtj"></sub></font><track id="9hhtj"><rp id="9hhtj"><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect></rp></track><track id="9hhtj"><rp id="9hhtj"><output id="9hhtj"><dfn id="9hhtj"></dfn></output></rp></track><delect id="9hhtj"><meter id="9hhtj"><delect id="9hhtj"><ol id="9hhtj"></ol></delect></meter></delect><ol id="9hhtj"><font id="9hhtj"></font></ol><mark id="9hhtj"></mark><b id="9hhtj"><meter id="9hhtj"><big id="9hhtj"><em id="9hhtj"></em></big></meter></b><b id="9hhtj"><delect id="9hhtj"></delect></b><ol id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><nobr id="9hhtj"></nobr></dfn></font></ol><p id="9hhtj"><mark id="9hhtj"></mark></p><track id="9hhtj"></track><font id="9hhtj"><big id="9hhtj"></big></font><ol id="9hhtj"></ol><meter id="9hhtj"></meter><delect id="9hhtj"><dfn id="9hhtj"></dfn></delect><track id="9hhtj"><rp id="9hhtj"><p id="9hhtj"><b id="9hhtj"></b></p></rp></track><p id="9hhtj"></p><pre id="9hhtj"></pre><b id="9hhtj"><font id="9hhtj"><dfn id="9hhtj"><em id="9hhtj"></em></dfn></font></b><nobr id="9hhtj"><pre id="9hhtj"><rp id="9hhtj"><output id="9hhtj"></output></rp></pre></nobr><pre id="9hhtj"><ol id="9hhtj"></ol></pre></div> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>