functions.php
function setPostViews($postID) {
$count_key = ‘post_views_count’;
$count = get_post_meta($postID, $count_key, true);
if($count==”){
$count = 0;
delete_post_me……继续阅读 »
wangting
7年前 (2017-07-27) 1020浏览
0个赞
function foo(arg1, arg2, arg3){
alert(art1 + arg2 + arg3);
}
[mark]foo.call(this, arg1,arg2,arg3) == foo.apply(this, arguments) == this.foo(arg1, arg2, arg3)[/mark]
call , apply 都……继续阅读 »
wangting
7年前 (2017-07-25) 1867浏览
0个赞