- 博客(4)
- 收藏
- 关注
原创 react-循环key重复导致组件重用
现象:主组件循环初始化子组建,第一页改了第一行子组建的this.state,设置了一张图片,翻页后第二页第一行也显示了一样的图片 原因:循环设置的key,做的自增,重复了...
2018-12-29 17:37:36
3464
原创 mysql 触发器
create database test charset utf8; use test; create table hx_goods( id int not null primary key auto_increment, goods_name varchar(10) not null default '', num int not null default 0 )engine myi
2014-04-29 23:26:07
387
转载 wordpress 获取文章插入的图片
<?php function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $m
2014-04-27 14:26:54
753
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅