HTML
木子李0531
金无足赤,人无完人
展开
-
图片点击放大 再次点击还原
html <script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.9.1.min.js"></script> <empty name="list"> <tr> <td style="text-align: center;" colspan="5"> <span style="color:red;font-size:2原创 2021-11-02 17:02:14 · 121 阅读 · 0 评论 -
设置HTML select 下拉框只读属性
<select class="select" name="record" size="1" id="record" style="height:30px;" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"> </select>原创 2020-11-16 15:47:11 · 951 阅读 · 0 评论 -
php封装的一个获取分页HTML的方法
/** * 获取分页的HTML内容 * @param integer $page 当前页 * @param integer $pages 总页数 * @param string $url 跳转url地址 最后的页数以 '&page=x' 追加在url后面 * * @return string HTML内容; */ function getpage_htm...原创 2018-11-30 09:18:31 · 831 阅读 · 0 评论 -
tp5根据数组进行分页
1,tp5根据数组分页控制器中代码 namespace app\index\controller; use \think\Controller; use \think\Db; use \think\Request; use think\paginator\driver\Bootstrap; class Index extends Controller { public functio...原创 2018-12-07 14:34:38 · 2630 阅读 · 8 评论 -
header is present on the requested resource. Origin 'null' is therefore not allowed access.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.解决方案 1,如果请求的url是PHP页面,则需要在PHP页面中添加代码:header("Access-Control-Allow-Origin:...原创 2018-12-27 16:07:56 · 6100 阅读 · 0 评论