smelikecat

导航

2014年8月8日 #

Ajax请求php返回json对象数据中包含有数字索引和字符串索引,在for in循环中取出数据的顺序问题

摘要: //php中的数组数据格式Array( [all] => Array ( [title] => ALL [room_promotion_id] => all ) [best_available_rate] => Ar... 阅读全文

posted @ 2014-08-08 17:20 smelikecat 阅读(812) 评论(0) 推荐(0)

2014年8月6日 #

smarty-2014-02-28

摘要: 使用smarty,在tpl文件中如何使用相对路径调用css&javascript文件,实际上这个相对路径的参照物就是以调用该tpl文件的php文件来写。 假如,我在index.php这个文件中调用template/index.tpl,那么index.tpl里面使用的css&javascript文件的... 阅读全文

posted @ 2014-08-06 15:40 smelikecat 阅读(123) 评论(0) 推荐(0)

2014年7月31日 #

PHP Functions - arsort()

摘要: 1 f [4] => e [3] => d [2] => c [1] => b [0] => a ) 9 */10 11 12 13 $numbers = array(1,2,3,4,5,6,7,8);14 arsort($numbers);15 print_r($numbers);16 ... 阅读全文

posted @ 2014-07-31 11:27 smelikecat 阅读(335) 评论(0) 推荐(0)

2014年7月23日 #

Launch Google Map in Android / IOS Mobile

摘要: Open Map,I am here.Open Map, I am here.Here are the pages list: How to launch Google Maps on iPhone via web link?Getting Safari to auto open Google M... 阅读全文

posted @ 2014-07-23 18:57 smelikecat 阅读(212) 评论(0) 推荐(0)

2014年6月23日 #

如何实现让你的网站支持Google Roboto Font

摘要: 最近在写一个移动端的web项目,designer设计的页面效果图就是使用Google Roboto Font。The Roboto Font 是Google为Android 4.0 Ice-Cream Sandwich platform而设计的,是一个新的san-serif字集。在css中,我直接使... 阅读全文

posted @ 2014-06-23 10:50 smelikecat 阅读(3282) 评论(0) 推荐(0)