摘要:
例1: function barber($type){ echo "you wanted a $type haircut, no problem\n"; } call_user_func('barber','mushroom'); 返回: you wanted a mushroom haircut, 阅读全文
摘要:
/* js */ var test = document.getElementById('test'); var parent = test.parentNode; // 父节点 var chils = test.childNodes; // 全部子节点 var first = test.first 阅读全文