Tips:点此可运行HTML源码
摘要: 请选择下拉菜单测试: 通过onchange="this.selectedIndex = 0;"使得select无论选中哪一个option,都跳回第一个,达到只读效果。 阅读全文
posted @ 2012-03-08 23:01 Zjmainstay 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 已知A,B两表,B表是A表aid = 1 构成的子表。现通过B表查询A表中哪些aid同时全部包含了B表中所有的bid。(参考数据库除运算) 阅读全文
posted @ 2012-03-08 22:48 Zjmainstay 阅读(2407) 评论(0) 推荐(0) 编辑
摘要: $url = 'http://www.cnblogs.com/Zjmainstay/archive/2012/03/08/PHP_FUNCTION_file_get_contents.html'; $bad_url = 'http://www.cnblogs.com/Zjmainstay/archive/2012/03/08/PHP_FUNCTION_file_get_contents_bad.html'; ini_set('default_socket_timeout', 3); /*超时控制(3秒)*/ if($data = file_get_contents($bad_url)) { echo $data; }else { echo 'Timeout'; } if($data = file_get_contents($url)) { echo $data; }else { echo 'Timeout'; } (全文结束) 阅读全文
posted @ 2012-03-08 22:31 Zjmainstay 阅读(2667) 评论(0) 推荐(0) 编辑