代码类库
明明不太菜
一只船孤独地航行在海上,
它既不寻求幸福,
也不逃避幸福,
它只是向前航行,
底下是沉静碧蓝的大海,
而头顶是金色的太阳。
展开
-
PHP:分页类
调用方法:$a = new Paging(29, 5);var_dump($a->allMessage());代码:<?php/** * Created by PhpStorm. * User: ming * Date: 2018/7/16 * Time: 上午11:07 */class Paging{ //总数据量 protected $totalC...原创 2018-07-16 12:17:29 · 178 阅读 · 0 评论 -
PHP应用:算数验证码
调用方法:$a = new CountCaptcha();$a->createCaptcha();代码:<?php/** * Created by PhpStorm. * User: ming * Date: 2018/7/24 * Time: 下午3:29 */class CountCaptcha{ //背景宽度 protected...原创 2018-07-24 16:46:14 · 447 阅读 · 0 评论 -
清除页面默认样式的css文件
*{margin:0;padding:0;}body, p, div, ul, dl, ol, i, em, strong, b, form, h1, h2, h3, h4, h5, h6{font-size:12px;font-family:'Microsoft Yahei';}ul, ol, dl{list-style:none;}a{text-decoration:none;color...原创 2018-07-13 15:32:48 · 2475 阅读 · 0 评论 -
PHP:验证码类
代码:<?php/** * Created by PhpStorm. * User: ming * Date: 2018/7/15 * Time: 下午4:34 */class Captcha{ //背景宽度 protected $width; //背景高度 protected $height; //背景色调 protected...原创 2018-07-15 19:24:43 · 150 阅读 · 0 评论 -
二级联动搜索框
html<span class="select-box inline"> <select name='first' class="select" id="type"> <option value="0">一级全部分类</option> {volist name="first_class&qu原创 2018-12-04 13:25:45 · 1074 阅读 · 0 评论 -
批量删除
HTML部分//全选(反选)<input id="selectAll" type="checkbox" onclick="selectAll()"/><input name="selectbody" type="checkbox" value="{$row['id']}" /><script>原创 2018-11-30 15:34:45 · 100 阅读 · 0 评论 -
修改 FORM 表单为 AJAX 提交
HTML代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>..原创 2019-03-01 11:58:12 · 262 阅读 · 0 评论 -
PHP实现跨域多图上传
干货:问题:在a.com上上传图片至b.comhtml(a.com)<div class="box_03"> <iframe style="width:100%;height:100%;" frameborder="0" scrolling="no" src="/picupload/ming?imgurl=&shuiyin=&uploadUr...原创 2019-06-18 23:39:12 · 976 阅读 · 0 评论