qq

  获取起始页:

string rootPath = (new StringBuilder("http://")

                                                        .Append(HttpContext.Current.Request.Url.Host)

                                                        .Append(":" + HttpContext.Current.Request.Url.Port)

                                                        .Append(HttpContext.Current.Request.ApplicationPath)).ToString();

 

char[] 转化为string

string srt = System.Text.Encoding.UTF8.GetString(byte[] bytes);


 

把十六进制字符串转换为int

  int aas=0x7866ffff;

这是正确的

如果0x7866ffff是字符串,那么如何将0x7866ffff转换成int

 

int aas=Convert.toInt32("0x7866ffff" , 16 )

 

 

window.location.href=window.location.href

window.reload()

 


你可能感兴趣的:(qq)