Dev
搜索

Dev

Failed to read auto-increment value from storage engine 解决办法
发表于2016-03-31|mysql
这个问题貌似是个bug,目前也还没什么好的办法解决 有人提交:http://bugs.mysql.com/bug.php?id=52193 解决办法: 1,先把auto_increment的字段的auto_increment属性去掉 2,把那个字段再重新加上auto_increment属性 如果用phpmyadmin等客户端很容易
thinkphp 数据写入
发表于2016-03-31|thinkphp
add方法 addAll方法:批量插入数据 // 批量添加数据 $dataList[] = array('name'=>'thinkphp','email'=>'thinkphp@gamil.com'); $dataList[] = array('name'=>'onethink','email'=>'onethink@gamil.com'); $User->addAll($dataList);  
placeholdit 占位图生成
发表于2016-03-31|others
http://placehold.it/320x160 如上面的链接,可以生成一个指定尺寸的占位图
thinkphp __construct _initialize 方法
发表于2016-03-27|thinkphp
__construct 是php构造函数,如果子类没有则执行父类构造函数,如果子类有,则覆盖父类构造函数   _initialize 是thinkphp中的函数,在__construct 中被调用,如果当前类有,则在实例化后 初始化时执行,其是否执行与父类没有关系 但是在thinkphp中,如果父类使用__construct进行一些初始化,可能在没有实例化完成时无法调用一些函数,比如assign,使用_initialize可以有效解决这个问题
thinkphp U方法显示域名
发表于2016-03-25|thinkphp
U(‘地址表达式’,[‘参数’],[‘伪静态后缀’],[‘显示域名’]) 后缀在普通模式时没有效果 只要在显示域名中加入你要显示的域名即可 例如: U(‘Home/index/post’,’’,’’,’10.100.50.101’)
正则表达式 重复次数
发表于2016-03-25|php
重复一次或者多次用 + 表示 重复零次或者多次用 * 表示 重复n次或者多次用 {n} 表示 重复n次以上用 {n,} 表示 重复n次到m次用 {n,m} 表示
less & 符号的使用 less 伪类样式
发表于2016-03-24|less
串联选择器,而不是写后代选择器,就可以用到 & 了 这点对伪类尤其有用如 :hover 和 :focus。   less 函数手册 http://www.1024i.com/demo/less/reference.html less语言特性 http://www.1024i.com/demo/less/document.html
thinkphp 关联模型
发表于2016-03-23|thinkphp
模型定义: [pcsh lang=”php” tab_size=”4” message=”” hl_lines=”” provider=”manual”] namespace Home\Model; use Think\Model\RelationModel; class TestModel extends RelationModel{ // 默认表名 protected $tableName = 'a'; // 关联定义 protected $_link = array( // 关联1 'Userrent' => array( 'mapping_type' => self::HAS_ONE, 'class_name' => 'B', 'mapping_n...
thinkcmf使用自定义模版函数
发表于2016-03-23|thinkcmf
在主题根目录建立function.html 在模版中引入这个文件<tc_include file=”:function”/> 在function.html中编写函数 <php> function _sp_helloworld(){ echo "hello ThinkCMF!"; } </php>
jQuery -animated 选择器
发表于2016-03-14|jq
:animated 选择器选取当前的所有动画元素。 就是animate函数操作的元素
1…646566…102
avatar
developer
AI相伴的开发者博客
文章
1011
标签
712
分类
31
Follow Me
公告
This is my Blog
最新文章
react native 0.83 turbo modules 安卓 使用记录2026-01-10
一种适合开发的设计风格2026-01-07
使用virtualbox 记录2026-01-04
ppa launchpad镜像2025-12-29
multipass 使用记录2025-12-28
分类
  • apicloud3
  • bootstrap8
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
  • flash2x2
标签
常用 COS 页面高度 egret 基本使用 $wpdb 拓展 禁止 mb_strcut H5 微信接口 ppt 无效 百度 getnv 微信支付 微信红包 session共享 模板字符串 thinkphp 常见问题 join 不同终端 url wordpress,plugins_url 和数组 对象 json 删除失败 poppler ci 对工作的思考 denied 中 会展行业 60 tostring 低成本 解决 我的全新开始
归档
  • 一月 2026 3
  • 十二月 2025 5
  • 十一月 2025 2
  • 十月 2025 5
  • 九月 2025 5
  • 八月 2025 2
  • 七月 2025 1
  • 五月 2025 1
网站信息
文章数目 :
1011
本站访客数 :
本站总浏览量 :
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中