摘要: 当前域名访问 me.com 文件<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script>$.getJSON('http://localhost/test.php?callback=?',{p1:'11'},function(msg){ //调用域localhost的test.php(其实两个文件在相同目录下) 阅读全文
posted @ 2012-06-14 10:39 ﹏Sakura 阅读(2400) 评论(0) 推荐(0) 编辑
摘要: <?php/** * php 快速排序 */$arr = array(7,8,6,5,3,10);function quick($array){ if(count($array) <=1) return $array; $k = $array[0]; $left = array(); $right = array(); for($i =1; $i< count($array); $i++){ if($array[$i] <= $k){ $left[] = $array[$i... 阅读全文
posted @ 2012-06-14 00:30 ﹏Sakura 阅读(188) 评论(0) 推荐(0) 编辑