首页  »   VB

VB鍜孷BS 鏄竴鍥炰簨鍚楋紵 鏈変粈涔堝尯鍒悧锛

网友分享于:2013-10-14  浏览:0次
VB鍜孷BS 鏄竴鍥炰簨鍚楋紵 鏈変粈涔堝尯鍒悧锛?
VBScript鏄疺isual Basic Script鐨勭畝绉帮紝鏈夋椂涔熻缂╁啓涓篤BS銆俈BScript鏄井杞紑鍙戠殑涓€绉嶈剼鏈瑷€锛屽彲浠ョ湅浣滄槸VB璇█鐨勭畝鍖栫増锛屼笌VBA鐨勫叧绯讳篃闈炲父瀵嗗垏銆傚畠鍏锋湁鍘熻瑷€瀹规槗瀛︿範鐨勭壒鎬э紝骞剁户鎵夸簡JavaScript鐨勮法骞冲彴鐨勭壒鎬с€傜洰鍓嶈繖绉嶈瑷€骞挎硾搴旂敤浜庣綉椤靛拰ASP绋嬪簭鍒朵綔锛屽悓鏃惰繕鍙互鐩存帴浣滀负涓€涓彲鎵ц绋嬪簭銆傜敤浜庤皟璇曠畝鍗曠殑VB璇彞闈炲父鏂逛究銆?

鐢变簬VBScript鍙互閫氳繃Windows鑴氭湰瀹夸富璋冪敤COM锛屽洜鑰屽彲浠ヤ娇鐢╓indows鎿嶄綔绯荤粺涓彲浠ヨ浣跨敤鐨勭▼搴忓簱锛屾瘮濡傚畠鍙互浣跨敤Microsoft Office鐨勫簱锛屽挨鍏舵槸浣跨敤Microsoft Access鍜孧icrosoft SQL Server鐨勭▼搴忓簱锛屽綋鐒跺畠涔熷彲浠ヤ娇鐢ㄥ叾瀹冪▼搴忓拰鎿嶄綔绯荤粺鏈韩鐨勫簱銆傚湪瀹炶返涓璙BScript涓€鑸鐢ㄥ湪浠ヤ笅涓変釜鏂归潰锛?

Windows鎿嶄綔绯荤粺
VBScript鍙互琚敤鏉ヨ嚜鍔ㄥ湴瀹屾垚閲嶅鎬х殑Windows鎿嶄綔绯荤粺浠诲姟銆傚湪Windows鎿嶄綔绯荤粺涓紝VBScript鍙互鍦╓indows Script Host鐨勮寖鍥村唴杩愯銆俉indows鎿嶄綔绯荤粺鍙互鑷姩杈ㄨ鍜屾墽琛?.VBS鍜?.WSF涓ょ鏂囦欢鏍煎紡锛屾澶朓nternet Explorer鍙互鎵ц*.HTA鍜?.CHM鏂囦欢鏍煎紡銆俈BS鍜學SF鏂囦欢瀹屽叏鏄枃瀛楀紡鐨勶紝瀹冧滑鍙兘閫氳繃灏戞暟鍑犵瀵硅瘽绐楀彛涓庣敤鎴烽€氳銆侶TA鍜孋HM鏂囦欢浣跨敤HTML鏍煎紡锛屽畠浠殑绋嬪簭鐮佸彲浠ヨ薄HTML涓€鏍疯缂栬緫鍜屾鏌ャ€傚湪WSF銆丠TA鍜孋HM鏂囦欢涓璙BScript鍜孞avaScript鐨勭▼搴忕爜鍙互浠绘剰娣峰悎銆侶TA鏂囦欢瀹為檯涓婃槸鍔犳湁VBS銆丣avaScript鎴愬垎鐨凥TML鏂囦欢銆侰HM鏂囦欢鏄竴绉嶅湪绾垮府鍔╋紝鐢ㄦ埛鍙互浣跨敤涓撻棬鐨勭紪杈戠▼搴忓皢HTML绋嬪簭缂栬緫涓篊HM銆?

缃戦〉娴忚鍣紙瀹㈡埛鏂圭殑VBS锛?
缃戦〉涓殑VBS鍙互鐢ㄦ潵鎸囨尌瀹㈡埛鏂圭殑缃戦〉娴忚鍣紙娴忚鍣ㄦ墽琛孷BS绋嬪簭锛夈€俈BS涓嶫avaScript鍦ㄨ繖涓€鏂归潰鏄珵浜夎€咃紝瀹冧滑鍙互鐢ㄦ潵瀹炵幇鍔ㄦ€丠TML锛岀敋鑷冲彲浠ュ皢鏁翠釜绋嬪簭缁撳悎鍒扮綉椤典腑鏉ャ€?

鑷充粖涓烘VBS鍦ㄥ鎴锋柟闈㈡湭鑳藉崰浼樺娍锛屽洜涓哄畠鍙幏寰楀洜涓哄畠鍙幏寰桵icrosoft Internet Explorer鐨勬敮鎸侊紙Mozilla Suite鍙互閫氳繃瑁呯疆涓€涓狿lugin鏉ユ敮鎸乂BS锛夈€傝€孞avaScript鍒欏彈鍒版墍鏈夌綉椤垫祻瑙堝櫒鐨勬敮鎸併€傚湪Internet Explorer涓璙BS鍜孞avaScript浣跨敤鍚屾牱鐨勬潈闄愶紝瀹冧滑鍙兘鏈夐檺鍦颁娇鐢╓indows鎿嶄綔绯荤粺涓殑瀵硅薄銆?

缃戦〉鏈嶅姟鍣紙鏈嶅姟鍣ㄦ柟闈㈢殑VBS锛?
鍦ㄧ綉椤垫湇鍔″櫒鏂归潰VBS鏄井杞殑Active Server Pages鐨勪竴閮ㄥ垎锛屽畠涓嶫avaServer Pages鍜孭HP鏄珵浜夊鎵嬨€傚湪杩欓噷VBS鐨勭▼搴忕爜鐩存帴宓屽叆鍒癏TML椤靛唴锛岃繖鏍风殑缃戦〉浠SP缁撳熬銆傜綉椤垫湇鍔″櫒Internet淇℃伅鏈嶅姟鎵цASP椤靛唴鐨勭▼搴忛儴鍒嗗苟灏嗗叾缁撴灉杞寲涓篐TML浼犻€掔粰缃戦〉娴忚鍣ㄤ緵鐢ㄦ埛浣跨敤銆傝繖鏍锋湇鍔″櫒鍙互杩涜鏁版嵁搴撻椈璁苟灏嗗叾缁撴灉鏀惧埌HTML缃戦〉涓€?

璇█
VBScript涓昏鐨勪紭鐐规湁锛?

鐢变簬VBScript鐢辨搷浣滅郴缁燂紝鑰屼笉鏄敱缃戦〉娴忚鍣ㄨВ閲婏紝瀹冪殑鏂囦欢姣旇緝灏忋€?
鏄撳銆?
鍦ㄦ墍鏈?000 / 98SE浠ュ悗鐨刉indows鐗堟湰閮藉彲鐩存帴浣跨敤銆?
鍙互浣跨敤鍏跺畠绋嬪簭鍜屽彲浣跨敤鐨勭墿浠讹紙灏ゅ叾Microsoft Office锛夈€?
缂虹偣鏈夛細

鐜板湪VBS鏃犳硶浣滀负鐢靛瓙閭欢鐨勯檮浠朵簡銆侻icrosoft Outlook鎷掔粷鎺ュ彈VBS涓洪檮浠讹紝鏀朵俊浜烘棤娉曠洿鎺ヤ娇鐢╒BS闄勪欢銆?
VBS鐨勫悇绉嶇紪杈戠▼鍣ㄤ笉鍙楁杩庛€?
鎿嶄綔绯荤粺娌℃湁浠讳綍鐗瑰埆鐨勪繚鎶よ鏂姐€俈BS绋嬪簭涓庡叾瀹僇S銆丒XE銆丅AT鎴朇MD绋嬪簭涓€鏍峰寰呫€傛搷浣滅郴缁熸病鏈夌洃瀵熸伓鎰忓姛鑳界殑鑳藉姏銆?

鍜孷B鐨勫姣?

涓嶈兘涓哄彉閲忓畾涔夌被鍨?
鍦╒B涓紝涓哄彉閲忓畾涔夌被鍨嬩娇鐢?Dim 鍙橀噺鍚?As 绫诲瀷

浣嗘槸鍦╒BScript涓繖鏍峰啓鏄敊璇殑銆傚彧鑳戒娇鐢?Dim 鍙橀噺鍚嶏紝瑙i噴鍣ㄤ細鑷姩鏍规嵁璧嬪€肩殑绫诲瀷瀹氫箟鍙橀噺绫诲瀷銆?

涓嶈兘浣跨敤鏉′欢缂栬瘧
鍦╒B涓紝鍙互浣跨敤 #If 鈥?Then銆?ElseIf 鈥?Then銆?Else銆?End If銆?Const 鈥?= 鈥?绛夎鍙ュ畾涔夌紪璇戞椂浣跨敤鐨勮鍙?

鑰岀敱浜嶸BScript涓嶉渶瑕佺紪璇戝嵆鍙洿鎺ユ墽琛岋紝鎵€浠ュ苟涓嶉渶瑕佹潯浠剁紪璇戣鍙ャ€?

瀹夊叏鎬?
寰蒋鍐冲畾Outlook鍜孫utlook Express涓殑HTML閭欢鍙互浣跨敤VBScript鍚庡嚭鐜颁簡璁稿鍒╃敤Windows Script Host鍜孉ctiveX鐨勫姛鑳界殑鐢佃剳鐥呮瘨銆傝繖浜涚梾姣掍箣鎵€浠ヨ兘澶熶紶鎾紑鏉ヤ篃鏄洜涓轰竴寮€濮嬭繖浜涚郴缁熷姛鑳藉畬鍏ㄦ湭鍙椾繚鎶ゃ€傝櫧鐒禫BScript鍜孞avaScript浣跨敤鍚屾牱鐨勪娇鐢ㄦ搷浣滅郴缁熺殑鍔熻兘鐨勫畨鍏ㄦ帾鏂斤紝浠婂ぉ鍛煎敜杩欎簺鍔熻兘琚湅浣滀笉绗﹀悎鏍囧噯銆?

涓€鑸緢闅句繚鎶BScript鐨勭▼搴忕爜涓嶈鐢ㄦ埛鐪嬪埌銆?

相关解决方案

最新解决方案