摘要: public static Boolean IsMobileDevice() { string[] mobileAgents = { "iphone", "android", "phone", "mobile", "wap", "netfront", "java", "opera mobi", "o 阅读全文
posted @ 2017-03-13 17:31 村夫哥哥 阅读(104) 评论(0) 推荐(0) 编辑
摘要: //QQ URL public ActionResult QQLocation() { var response_type = "code"; string state = "1"; string url = string.Format("https://graph.qq.com/oauth2.0/... 阅读全文
posted @ 2016-01-20 18:23 村夫哥哥 阅读(173) 评论(0) 推荐(0) 编辑
摘要: function initialize() { var myLatlng = new google.maps.LatLng( $("#lanlat").val().split(',')[0],$("#lanlat").val().split(',')[1]); var myOptions = {... 阅读全文
posted @ 2015-12-10 16:24 村夫哥哥 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1。^\d+$ //注释:匹配 非负整数(正整数 + 0) 2。^[0-9]*[1-9][0-9]*$ //注释:匹配 正整数 3。^((-\d+)|(0+))$ //注释:匹配 非正整数(负整数 + 0) 4。^-[0-9]*[1-9][0-9]*$ //注释:匹配 负整数 5。^-?... 阅读全文
posted @ 2014-07-03 16:13 村夫哥哥 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-03 16:09 村夫哥哥 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: C#:substring(第一参数,第二参数)// 第一参数:从第几位开始截,初始是从0位开始 第二参数:截取几位substring(参数) 如果传入参数为一个长整, 且大于等于0,则以这个长整的位置为起始,截取之后余下所有作为字串。 如若传入值小于0, 系统会抛出ArgumentOutOfRang... 阅读全文
posted @ 2014-06-19 11:22 村夫哥哥 阅读(469) 评论(0) 推荐(0) 编辑