点击表头取下标&js时间转时间戳

1.Date.parse(new Date("2017-7-31"));

2.$("th").eq(this.cellIndex);  // 

3.end($arr)取数组中的最后一个值。

4.json_encode()必须为utf-8格式,其它格式的都返回null

5.file_get_content()只能写入字符串

6.extract()

eg:

<?php
$a = "Original";
$my_array = array("a" => "Cat","b" => "Dog", "c" => "Horse");
extract($my_array);
echo "\$a = $a; \$b = $b; \$c = $c"; //$a="cat";$b="dog"
?>

7.mt_rand()比rand()效率高而且快。

posted @ 2017-12-01 08:24  Basu  阅读(203)  评论(0编辑  收藏  举报