$filter('date')(new Date(),"yyyy-MM-dd"); Read More
posted @ 2014-08-28 18:44 粉条 Views(191) Comments(0) Diggs(0)
今天使用到js判断一个对象是否为空,js没有封装好的方法,这里最好的办法就是使用jquery里面的封装好的方法$.isEmptyObject(obj) Read More
posted @ 2014-08-25 18:14 粉条 Views(446) Comments(0) Diggs(0)
posted @ 2014-06-14 02:04 粉条 Views(759) Comments(0) Diggs(0)
今天遇到一个Query Builder 联合查询问题:查询关联表某个字段的总数 Read More
posted @ 2014-06-10 14:42 粉条 Views(185) Comments(0) Diggs(0)
在YII框架中,session持久化方法只需要调用login()方法就行了class loginAction extends CAction{ function run(){ $model=new UserForm(); if(isset($_POST['UserF... Read More
posted @ 2014-05-24 23:16 粉条 Views(209) Comments(0) Diggs(0)
foo bar baz$('li').index(document.getElementById('bar')); //1,传递一个DOM对象,返回这个对象在原先集合中的索引位置$('li').index($('#bar')); //1,传递一个jQuery对象$('li').index($('l... Read More
posted @ 2014-05-24 23:12 粉条 Views(239) Comments(0) Diggs(0)
posted @ 2014-05-19 02:03 粉条 Views(184) Comments(0) Diggs(0)
display:inline-block Read More
posted @ 2014-05-12 01:45 粉条 Views(124) Comments(0) Diggs(0)
if(isset($_POST['Goods'])){ foreach($_POST['Goods'] as $_k =>$_v){ $model->$_k=$_v; } if($model->save()){ echo "success"; } } Read More
posted @ 2014-05-12 00:17 粉条 Views(602) Comments(0) Diggs(0)
1,在protected/config/main.php目录下修改如下目录'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiMod... Read More
posted @ 2014-05-10 16:12 粉条 Views(369) Comments(0) Diggs(0)