在modle层里面的rules里面对应的规则列表
<?php
class User extends CActiveRecord{
public $password1;
public $password2; public static function model($className = __CLASS__){
return parent::model($cl...
分类:
其他好文 时间:
2015-06-19 15:21:29
阅读次数:
126
public class Q1_example {
private String name="lijun";
public Q1_example(){
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
...
分类:
其他好文 时间:
2015-06-19 15:21:08
阅读次数:
157
return,break,next 这几个关键字的使用都涉及到跳出作用域的问题,而他们的不同 则在于不同的关键字跳出去的目的作用域的不同,因为有代码块则导致有一些地方需要格外注意。return常用方式通常情况下的return语句和大家理解的意思是相同的。 def m1 param
if param == 1
return 'returned 1'
end...
分类:
其他好文 时间:
2015-06-19 10:37:51
阅读次数:
122
如果项目中涉及到登陆注册等。
此时就需要考虑密码的加密
iOS下的具体实现方式如下
新建一个类 继承
#import
#import
@interface MD5 : NSObject
/**
* MD5加密,传入需要加密的字符串,不可逆
*
* @param str 需要加密的字符串
*
* @return 加密后字符串
*/
+ (NSString *)md...
分类:
移动开发 时间:
2015-06-19 10:26:14
阅读次数:
166
自已在调用一段ajax开发中,返回的是空值string result = string.Empty;return result;但在页面进行$.ajax调用 时输出alert(result);应该是弹出一个空白的,结果弹出的却是[object XMLDocument],不知何原因
分类:
Web程序 时间:
2015-06-19 10:23:20
阅读次数:
134
https://leetcode.com/problems/remove-element/Given an array and a value, remove all instances of that value in place and return the new length.The ord...
分类:
其他好文 时间:
2015-06-19 01:26:31
阅读次数:
146
public class DistributeDao implements Serializable{ private SessionFactory sessionFactory; public Session getSession() { return s...
分类:
数据库 时间:
2015-06-19 01:12:14
阅读次数:
243
`return`,`break`,`next` 这几个关键字的使用都涉及到跳出作用域的问题,而他们的不同 则在于不同的关键字跳出去的目的作用域的不同,因为有代码块则导致有一些地方需要格外注意。 ***return*** 常用方式 通常情...
分类:
其他好文 时间:
2015-06-19 00:07:12
阅读次数:
140
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.
For example, given the following matrix:
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0...
分类:
其他好文 时间:
2015-06-19 00:02:50
阅读次数:
170
https://leetcode.com/problems/merge-two-sorted-lists/Merge two sorted linked lists and return it as a new list. The new list should be made by splicin...
分类:
其他好文 时间:
2015-06-18 23:57:12
阅读次数:
141