码迷,mamicode.com
首页 >  
搜索关键字:method    ( 13407个结果
"constantize" and "with_indifferent_access" method
[31] pry(main)> 'packages'.classify=> "Package"[33] pry(main)> 'packages'.classify.constantize=> Package[40] pry(main)> hash = {key: 'value'}=> {:key=...
分类:数据库   时间:2014-06-22 23:40:33    阅读次数:318
Rails accepts_nested_attributes_for表单嵌套的利器
http://blog.csdn.net/kunshan_shenbin/article/details/7249713http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-fields_for...
分类:其他好文   时间:2014-06-22 23:32:23    阅读次数:257
Android收起虚拟键盘
关于收起虚拟键盘,网上能找到的大多是这个: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0) ; 不过这有个问题,比如我们在一个页面中...
分类:移动开发   时间:2014-06-22 21:59:42    阅读次数:250
设计模式 - 模板方法模式(template method pattern) JFrame 详解
模板方法模式(template method pattern) JFrame 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式(template method ...
分类:其他好文   时间:2014-06-22 21:36:47    阅读次数:283
设计模式 - 模板方法模式(template method pattern) 详解
模板方法模式(template method pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy模板方法模式(template method pattern): 在一个方法中定义一个算法的骨架, 而将一些步骤延迟到子类中. 模板方法使得子类可以在不改变算法结构的情况下, 重新定义算法中的某些步骤.模板方法可以进行挂钩(hook), 钩子(hoo...
分类:其他好文   时间:2014-06-22 18:49:01    阅读次数:227
在input中回车后页面提交导致出现HTTP 错误 405.0 - Method Not Allowed
前些时间在做一个搜索功能时发现一个比较有意思的现象,场景是这样的:在一个模态窗口中是一个订单列表,页面的顶部有若干个状态筛选框和一个搜索关键字输入框,当焦点在关键字输入框时按回车,本来是对input的keyup事件做了监听,当发现是按了回车键时便自动提交搜索请求的,但输入关键字后按回车时页面竟然跳转了,并且出现“HTTP 错误 405.0 - Method Not Allowed无法显示您正在查找...
分类:其他好文   时间:2014-06-22 17:05:07    阅读次数:219
设计模式 - 模板方法模式(template method pattern) Applet 详解
模板方法模式(template method pattern) Applet 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式(template method ...
分类:移动开发   时间:2014-06-22 15:28:58    阅读次数:176
设计模式 - 模板方法模式(template method pattern) 排序(sort) 详解
模板方法模式(template method pattern) 排序(sort) 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式的一个主要的应用是排序(sor...
分类:其他好文   时间:2014-06-22 15:24:51    阅读次数:231
抹掉Scala的糖衣(14) -- Update Method
欢迎关注我的新博客地址:http://cuipengfei.me/   在Scala中,名字叫做update的方法是有特殊作用的。 比如: 1 2 3 val scores = new scala.collection.mutable.HashMap[String, Int] scores("Bob") = 100 val bobsScore =...
分类:其他好文   时间:2014-06-22 07:37:52    阅读次数:282
c# async
?Methods (as well as lambda expressions or anonymous methods) can be markedwith the async keyword to enable the method to do work in a nonblockingmann...
分类:其他好文   时间:2014-06-21 17:58:34    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!