摘要:1、把主键定义为自动增长标识符类型在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如:create table customers(id int auto_increment primary key not null, name varchar(15)...
阅读全文
07 2015 档案
摘要:在开发中,我们经常需要更新列表,并将列表拉倒最底部,比如发表微博,聊天界面等等,这里有两种办法,第一种,使用scrollTo():[java]view plaincopypublicstaticvoidscrollToBottom(finalViewscroll,finalViewinner){Ha...
阅读全文