It's not a Git error message, it's the editor as git uses your default editor.
To solve this:
- press "i"
- write your merge message
- press "esc"
- write ":wq"
- then press enter
任务
感觉正则不熟
excel.php
rsaclient.php
看js
看ajax
------------------------------------------------------
当师傅没吩咐任务的时候,我该干些什么。
不会的太多,感觉看不过来,看什么都不会。现在看w3school的表单验证,看到htmlspecialchars就卡住,怎么想都不理解这个函数帮助提高安全性的功能是怎么做到的。
---------------------------------------
嘛 从表单验证开始吧
------------------------
$this->form_validation->set_rules(
'username', 'Username',
'required|min_length[5]|max_length[12]|is_unique[users.username]',
array(
'required' => 'You have not provided %s.',
'is_unique' => 'This %s already exists.'
)
);
上面这部分,对于联级规则后面,我并没有在form_validation里找到对应的关键字,但是找到了几个对应方法。故猜测可能是通过识别字符串,分割出对应方法执行。
在set_rules中,这个字符串最终被分割成一个数组,装进了_field_data[$field] 数组中,关联索引就是'rules'
我在run方法里找到了处理上面这个数组_field_data的部分,这里使用了一个_execute的方法
卧槽_execute这个代码我扣不动了要,250多行
卧槽 这个表单真的去到数据库里匹配用户名和密码了
当在set_rules中的第三个参数那里使用callback_某个方法名 ,就可在检测中使用这个自己php中定义的规则
----------------------------------
啊,这就是差距么。我写了好几个小时,师傅说几分钟就行。