摘要: function CurlPost($url, $data) { $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FA 阅读全文
posted @ 2017-06-09 17:08 SingleShadow 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.ios设备上浏览器对url的自动编码,android设备正常 用decodeURIComponent对url或者所需数据解码处理 阅读全文
posted @ 2017-06-09 11:39 SingleShadow 阅读(124) 评论(0) 推荐(0) 编辑
摘要: .circle1 { width: 100px; height: 200px; border: 1px solid black; border-radius: 100% 0 0 100%/50%; border-right: none; } .circle2 { width: 200px; heig 阅读全文
posted @ 2017-04-21 14:49 SingleShadow 阅读(27309) 评论(0) 推荐(2) 编辑
摘要: (1)标签选择器: body、div、p、ul等等 (2)通用选择器: *(用来选取所有元素) (3)id选择器: #idName (4)类选择器: .className (5)后代选择器/包含选择器:(连接符为空格) div p //指作为div元素后代的所有p元素,允许有隔代关系(6)子元素选择 阅读全文
posted @ 2017-04-20 16:54 SingleShadow 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1.函数 lookUp 有两个预定义参数:firstName值和prop属性 。 函数将会检查通讯录是否存在一个联系人的firstName属性等于firstName值,还会检查对应联系人是否存在 prop属性。 如果它们都存在,函数返回prop属性对应的值。 如果firstName 值不存在,返回 阅读全文
posted @ 2017-03-13 16:32 SingleShadow 阅读(627) 评论(0) 推荐(0) 编辑
摘要: if($size > 51200){ //压缩图片 $uploadfile = $imgDir.$filename; //图片路径 $uploaddir_resize = 'account_imgs/'; $uploadfile_resize = $uploaddir_resize.$filenam 阅读全文
posted @ 2017-01-17 15:20 SingleShadow 阅读(6122) 评论(0) 推荐(0) 编辑
摘要: 执行sql语句alter table tablename(数据表名) drop primary key 阅读全文
posted @ 2017-01-12 10:59 SingleShadow 阅读(3225) 评论(0) 推荐(0) 编辑
摘要: html: <?php //如果接收的数据包含图片文件 if(isset($_FILES['file'])){ $aid = intval($_POST['aid']); $nickname = ($_POST['nickname']); //获取图片的临时路径 $image = $_FILES[" 阅读全文
posted @ 2017-01-12 09:44 SingleShadow 阅读(3943) 评论(0) 推荐(0) 编辑
摘要: <style> /*在chrome下移除input[number]的上下箭头*/ <style> 阅读全文
posted @ 2017-01-06 16:28 SingleShadow 阅读(12521) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-01-06 13:53 SingleShadow 阅读(119) 评论(0) 推荐(0) 编辑