摘要: 1 <?php 2 3 namespace app\wechat\controller; 4 5 use EasyWeChat\Factory; 6 use EasyWeChat\Kernel\Messages\News; 7 use EasyWeChat\Kernel\Messages\NewsI 阅读全文
posted @ 2019-01-17 15:46 哔哩哔哩干杯 阅读(2436) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function(e) { var urll = location.href.split('#')[0]; $.ajax({ async:false, url:"php/fenxiang.php", data:{urll:urll}, type:"POST", d 阅读全文
posted @ 2017-10-30 14:44 哔哩哔哩干杯 阅读(409) 评论(0) 推荐(0) 编辑
摘要: var sj = new Date(parseInt(时间戳));var time = sj.getFullYear()+'年'+(sj.getMonth()+1)+'月'+sj.getDate()+'日'; 阅读全文
posted @ 2017-10-24 11:39 哔哩哔哩干杯 阅读(258) 评论(0) 推荐(0) 编辑
摘要: $token_file = fopen("token.txt", "r"); //获取文本里的access_token和时间戳 $rs = fgets($token_file); fclose($token_file); $attr = explode(',',$rs); $time2 = time 阅读全文
posted @ 2017-09-07 17:32 哔哩哔哩干杯 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: 引入 <script type="text/javascript" src="utf8-php/ueditor.config.js"></script><script type="text/javascript" src="utf8-php/ueditor.all.js"></script> <!- 阅读全文
posted @ 2017-08-02 16:44 哔哩哔哩干杯 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 本文来源:http://www.cnblogs.com/penghuwan/p/6682303.html 引言: 写前端UI的朋友们也许都遇到过这样的问题:我们需要实现这样一个需求,在一个父级元素中隐藏一个可能过长的文本: 这个文本可能是单行的: 也可能是多行的: 下面我就给大家展示如何简单或优雅地 阅读全文
posted @ 2017-04-10 15:04 哔哩哔哩干杯 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <div id='id' style='left:0px'></div> $('#id').animate({left:100+"px"}); 使div向右滑动100px; $('#id').animate({left:-100+"px"}); 使div向左滑动100px; <input type= 阅读全文
posted @ 2017-03-31 17:17 哔哩哔哩干杯 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.jb51.net/article/49346.htm; 在数据库表中,对字段建立索引可以大大提高查询速度。假如我们创建了一个 mytable表: 复制代码代码如下: CREATE TABLE mytable( ID INT NOT NULL, username VARCHA 阅读全文
posted @ 2017-03-29 15:50 哔哩哔哩干杯 阅读(174) 评论(0) 推荐(0) 编辑
摘要: a标签直接下载文件如果遇到图片或文本文档则默认会直接打开,而不是下载,可以 <a href="/uploadfolder/xxxx.txt" download="文件名.txt">点击下载</a> ,如果download为空则默认使用文件名 阅读全文
posted @ 2017-03-28 14:07 哔哩哔哩干杯 阅读(3001) 评论(0) 推荐(0) 编辑
摘要: <form id="tj_1" action="public/sccl.php" target="hidden_frame" method="post" enctype="multipart/form-data"> <input type='text' hidden="hidden" id="tj_ 阅读全文
posted @ 2017-03-27 21:22 哔哩哔哩干杯 阅读(370) 评论(0) 推荐(0) 编辑