asp.net½ØÈ¡×Ö·û´®
ÈçÏÂÃæµÄ×Ö·û´®:
abc-bdef-axdg,ÎÒÖ»ÏëÈ¡µ½µÚÒ»¸ö"-"µÄλÖ㬸ÃÔõôд£¿£¿£¿£¿
C# code:
string str = "abc-bdef-axdg";
Console.WriteLine(str.Substring(0, str.IndexOf("-")));
½á¹û-->>>abc
C# code:
String.IndexOf
static void Main(string[] args)
{
string str = "abc-bdef-axdg";
Console.WriteLine(str.IndexOf('-'));
Console.ReadLine();
}
C# code:
"abc-bdef-axdg".IndexOf("-")
ͬÒâ樓ÉϵÄ說·¨£¡
SubStringºÍString.IndexOf
ding
String.IndexOf
string.Indexof
»Ø¸´Õâô¿ì£¬Ö»ÄÜÖ§³ÖÁË
Ïà¹ØÎÊ´ð£º
°ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸ģ¬´ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ
LZºÃÀ÷º¦
Ó÷´±àÒëÈí¼þ
ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿
ÓÐÃ ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......
ÎÒÔÚºǫ́µ÷ÓÃJavaScriptµÄʱºò£¬ËûÊÇÔÚºǫ́°ÑʼþµÄ´úÂëÖ´ÐÐÒ»´ÎºóÔÚÖ´ÐÐJavaScript·½·¨
ÓÐʲô°ì·¨ ÔÚÖ´ÐÐJavaScript·½·¨µÄʱºòͣס£¬ÔÚÖ´ÐкóÃæµÄ´úÂë
²»Ì«Ã÷°×°¡£¬ËµÇå³þµã°É
¾ÍÊÇÖ´Ðкǫ́´úÂëµÄʱºò ......
Ƥ·ôºÍÑùʽ±í¶¼¿ÉÒÔÉèÖÿؼþµÄÍâ¹Û£¬¾ßÌåÓÐʲôÇø±ðÄØ£¿
skin ÊÇasp.net ÌåϵµÄ ¾ÍÏ൱ÓÚ<asp:TextBox> ¶ÔÓ¦ÓÚ<input type="text">
Äã°ÑƤ·ôµ±³ÉÒ·þ£¬°ÑÑùʽ±íµ±³É»¯×±Æ·¾ÍÈÝÒ×Àí½âÁË
......