使ç¨ASPä¸çLeft å½æ°
å®ä¹ï¼
Left å½æ°å¯ä»å符串ç左侧è¿åæå®æ°ç®çå符ã
è¯æ³ï¼
Left(string,length)
åæ°stringï¼å¿ éçãä»å ¶ä¸è¿åå符çå符串ã
åæ°lengthï¼å¿ éçãè§å®éè¿åå¤å°å符ãå¦æ设置为 0ï¼åè¿å空å符串("")ãå¦æ设置为大äºæçäºå符串çé¿åº¦ï¼åè¿åæ´ä¸ªå符串ã
ä¾å 1
dim txtè¾åºï¼
This is a b
ä¾å 2
dim txtè¾åºï¼
This is a beautiful day!
ä¾å 3
dim txt,xè¾åºï¼
This is a beautiful day!