php
lihuazhai_com
这个作者很懒,什么都没留下…
展开
-
用firebug的console调试JavaScript后不需删除调试代码
web前端开发人员喜欢用firebug来调试JavaScript程序,用console.log() 来输出调试信息到firebug的控制台。这肯定是比用alert()来弹出调试信息好用得多。这前提是用户的Firefox浏览器安装了firebug插件,并已经激活使用,否则会报错说:console object is not defined. 还有部分ie浏览器本身就不支持conso原创 2016-03-17 12:01:35 · 279 阅读 · 0 评论 -
分享一种用户密码加密方式
function add_user($username, $password, $email) { $salt = substr(uniqid(rand()), -6); $password = md5(md5($password).$salt); $this->db->query("INSERT INTO table_name VALUES ('$username, $passwo原创 2016-03-08 17:12:17 · 662 阅读 · 0 评论