码迷,mamicode.com
首页 >  
搜索关键字:static function    ( 99341个结果
C#字符串操作 取文本左边 取文本右边 取文本中间 取文本中间到List集合 指定文本倒序
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public static string GetLeft(string str, string s) ...
分类:其他好文   时间:2014-04-29 11:26:47    阅读次数:362
js 验证手机号码
js 验证手机号码 //验证手机号 function isMobel(value) { if (/^1[3-8]+\d{9}$/g.test(value)) { return true; } else { return false; } }
分类:移动开发   时间:2014-04-29 11:12:46    阅读次数:369
找到视图“Page”或其母版视图,或没有视图引擎支持搜索的位置。搜索了以下位置:
将原起始页面View中 Index和 Controller中的HomeController删除后报这样的错误,在global.asax设置好路由后例:public static void RegisterRoutes(RouteCollection routes) { ...
分类:其他好文   时间:2014-04-29 10:38:47    阅读次数:544
IOS 使用dispatch_once 创建单例
+ (instantClass *)sharedClient {static instantClass *_sharedClient = nil;static dispatch_once_t onceToken;dispatch_once(&onceToken, ^{_sharedClient = ...
分类:移动开发   时间:2014-04-29 10:27:47    阅读次数:419
HTML DOM event 事件 (丫头, 好想你了)
HTML DOM event 事件, 用用就知道了function isKeyPressed(eventssdasd) // 这个地方其实无关紧要,就是定义一个名称而已, 不过为了好看, 最好还是写成 event{ if (event.altKey==1)//event代表事件的状态,例如触发eve...
分类:Web程序   时间:2014-04-29 10:26:46    阅读次数:474
Jquery CSS 操作 - height() 方法
一、height() 方法 height() 方法返回或设置匹配元素的高度$(".btn1").click(function(){ $("p").height(50);});height方法事例
分类:Web程序   时间:2014-04-29 10:17:45    阅读次数:411
md5 对字符串进行加密的方法 简单好用
1 public static String makeMD5(String password) { 2 String result = null; 3 4 MessageDigest messageDigest; 5 try { 6 ...
分类:其他好文   时间:2014-04-29 10:16:46    阅读次数:348
获取用户的IP地址和本机IP4地址
/// /// 获取用户的IP地址 /// /// public static string GetIPAddress() { string user_IP = string.Empty; ...
分类:其他好文   时间:2014-04-29 10:16:45    阅读次数:397
IOS 定位 单例
+ (SCLocationController *)sharedController{ static SCLocationController *sharedController = nil; static dispatch_once_t onceToken; dispatc...
分类:移动开发   时间:2014-04-29 10:12:46    阅读次数:534
封装函数getClient获取当前显示区域的大小,即clientWidth和clientHeight
1 //获取当前显示区域的大小,即clientWidth和clientHeight 2 function getClient(){ 3 var isXHTML; //初始值默认 符合DOM的xHTML标准 4 var clientWidth,clientHeight; 5 if(docume...
分类:其他好文   时间:2014-04-29 09:36:46    阅读次数:465
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!