摘要: 优先级从上到下PHPECMAScript特殊运算符[ ] ,( )[ ] ,( ) 自增减/类型++ -- ! int float string array object @ (错误抑制符)++ -- - ~ ! delete new typeof void算数* / % + - .(字符串连接)... 阅读全文
posted @ 2015-07-08 23:51 331415706 阅读(117) 评论(0) 推荐(0) 编辑
摘要: PHP ECMAScript 长度 $length = count($array) length = array.length 增 array_unshift($array, new1,new2) 开头添加一个或多个元素,返回长度 array.unshift(new1,new2) array_push($array,new1,new2)... 阅读全文
posted @ 2015-07-08 23:06 331415706 阅读(140) 评论(0) 推荐(0) 编辑
摘要: PHP ECMAScript 向上取整 ceil($number) Math.ceil( number ) 向下取整 floor($number) Math.floor( number ) 绝对值 abs($number) Math.abs( number ) 四舍五入 round($number,n) Math.round( number ) ... 阅读全文
posted @ 2015-07-08 17:23 331415706 阅读(180) 评论(0) 推荐(0) 编辑
摘要: PHP ECMAScript 长度 strlen($str) str.length 查找类 $str[n] 获取字符串中第n个字符 charAt(n) charCodeAt(n) 获取字符串中第n个字符的Unicod... 阅读全文
posted @ 2015-07-08 10:41 331415706 阅读(133) 评论(0) 推荐(0) 编辑