• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






张%sir

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年7月18日

封装cookie
摘要: //创建cookie function setCookie(name, value, expires, path, domain, secure) { var cookieText=encodeURIComponent(name)+'='+encodeURIComponent(value); if 阅读全文
posted @ 2018-07-18 22:13 张%sir 阅读(114) 评论(0) 推荐(0)
 
ajax请求数据
摘要: 封装ajax function ajax_(_type,_url,_data,callback,_dataType){ _dataType=_dataType==undefined?"text":_dataType; $.ajax({ type:_type, url:_url, async:true 阅读全文
posted @ 2018-07-18 22:10 张%sir 阅读(105) 评论(0) 推荐(0)
 
PHP生成验证码
摘要: <?phpheader("content-type:image/png");$img=imagecreatetruecolor(80,40);$red=imagecolorallocate($img,0xff,0x00,0x00);$black = imagecolorallocate($img, 阅读全文
posted @ 2018-07-18 22:06 张%sir 阅读(116) 评论(0) 推荐(0)
 
PHP连接mysql
摘要: $servername = "localhost"; //服务器$username = "root"; //用户名$password = "root"; //密码$dbname="base"; //表名$params = array ( PDO::MYSQL_ATTR_INIT_COMMAND => 阅读全文
posted @ 2018-07-18 22:04 张%sir 阅读(186) 评论(0) 推荐(0)
 
ext笔记
摘要: 命名 The top-level namespaces and the actual class names should be CamelCased. Everything else should be all lower-cased. For example:MyCompany.form.act 阅读全文
posted @ 2018-07-18 11:40 张%sir 阅读(114) 评论(0) 推荐(0)
 
EXTJS中文乱码
摘要: 在<head>中加入 阅读全文
posted @ 2018-07-18 08:45 张%sir 阅读(115) 评论(0) 推荐(0)