1.用PDO连接mysql库中的user库用户名是root密码是123456以下格式正确的是(C)
A.new PDO("mysql:dbname=test;host=localhost;charset=utf8",'root','123456')
B.new PDO("mysql=host:localhost;dbname:test;charset:utf-8",'root','123456')
C.new PDO("mysql:host=localhost;dbname=test;charset=utf8",'root','123456')
D.new PDO("mysql:host=localhost;dbname=test;charset=utf-8",'root','123456')
2.以下关于jquery中empty和remove说法正确的是(A)
A.empty()从被选元素中删除子元素
B.remove()删除被选元素(不会删除其子元素)
C.remove()从被选元素中删除子元素
D.empty()删除被选元素及其子元素
3.以下哪个魔术方法是方法不存在的时候会自动调用的(B)
A.__construct()//new实例化使用
B.__call()//获取不存在变量
C.__get()//页面完成
D.__destruct()
4.以下哪个是用来全程检测ajax请求发送响应的(C)
A.xmlhttp.responseText
B.xmlhttp.readyState
C.xmlhttp.onreadystatechange