#723
展开↯#724
展开↯#725
作者:广西南宁市
PHP去除数组键名的函数是:array_values();
#,广西南宁市,2017-12-12,10:56:25, php去重 php多维数组去重 php去掉键名
#,广西南宁市,2017-12-12,15:15:59, MYSQL对某个字段去重 #,广西南宁市,2017-12-12,15:19:23, mysql去除重复数据 group by order by 同时使用 mysql去重复查询 查询去除重复 MySQL去除查询结果重复值 mysql查询所有记录,并去掉重复的记录 mysql去重复 保留一条
<?php
//定义数组
$arr=array(
"name"=>"zhidao",
"age"=>"10"
);
$result = array_values($arr);
var_dump($result);
/*array(2) {
[0]=>
string(6) "zhidao"
[1]=>
string(2) "10"
}*/
Run code
Cut to clipboard
if($kw){
foreach($arr as $rk=>$rv){
$nrv[$rv['md5']]=$rv;
}
$arr=array_values($nrv);
}
Run code
Cut to clipboard
SELECT *, COUNT(DISTINCT iswtf) FROM table GROUP BY iswtf
Run code
Cut to clipboard
$sql='SELECT *, COUNT(DISTINCT iswtf) FROM viiscc where tagss like \'%'.$kw.'%\' or sceneii like \'%'.$kw.'%\' GROUP BY iswtf order by tc '.$obrddd.', sc '.$obrddd.', id '.$obrddd.' limit '.$ps.','.$psize;
Run code
Cut to clipboard
文章:二分法,去重算法 发表时间:2017-12-12, 10:55:20
#727
作者:广西南宁市
header("Content-type: text/html; charset=utf-8");
$kw=iconv("GBK","utf-8",$_GET['kw']); //将字符串的编码从GB2312转到UTF-8
if(!$kw) $kw=$_GET['kw'];
$kw=char($kw);
@mysql_query("set names utf8mb4");
<meta http-equiv="content-type" content="text/html;charset=utf-8">
Run code
Cut to clipboard
function getSafeStr($str){
$s1 = iconv('utf-8','gbk',$str);
$s0 = iconv('gbk','utf-8',$s1);
if($s0 == $str){
return $str;//'utf-8';
}else{
return iconv('gbk','utf-8',$str);//'gbk'
}
}
Run code
Cut to clipboard
也可以在id=1后通过and符号多增加多个判断,如果‘id=1 and 1=1’页面正常,‘id=1 and 1=2’时页面不正常,则这个页面边可能存在注入。
文章:PHP分割txt纯文本小说格式章节 发表时间:2017-12-05, 10:38:00
#729
作者:广西南宁市
<?php
//获取access_token
$appid = "wxff7c********";
$appsecret = "197*******7a*******5";
function access_token($appid,$appsecret){
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appid}&secret={$appsecret}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // 对认证证书来源的检查,FALSE表示阻止对证书的合法性的检查。
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // 从证书中检查SSL加密算法是否存在
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//将使用PHP curl获取页面内容或提交数据,作为变量储存,而不是直接输出。
$output = curl_exec($ch);// 执行操作,这里就是返回的结果
$jsoninfo = json_decode($output, true);
$access_token = $jsoninfo["access_token"];
curl_close($ch);//关闭一个curl会话
//echo $access_token;exit;
return $access_token;
}
//print_r($post);exit;
//post请求
function post($url,$post) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // 对认证证书来源的检查,FALSE表示阻止对证书的合法性的检查。
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // 从证书中检查SSL加密算法是否存在
curl_setopt($ch, CURLOPT_POST , 1); //使用post提交数据
curl_setopt($ch, CURLOPT_POSTFIELDS, $post); //设置 post提交的数据
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
$jsoninfo = json_decode($output, true);
return $output;
}
function get($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // 对认证证书来源的检查,FALSE表示阻止对证书的合法性的检查。
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // 从证书中检查SSL加密算法是否存在
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//将使用PHP curl获取页面内容或提交数据,作为变量储存,而不是直接输出。
$response = curl_exec($ch); // 已经获取到内容,没有输出到页面上。
$jsoninfo = json_decode($response, true);
return $jsoninfo;
}
//自定义菜单
function menudiy($appid,$appsecret){
$access_token=access_token($appid,$appsecret);
$url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$access_token}";
$post='{
"button":[
{
"type":"view",
"name":"微官网",
"url":"http://www.liangtianmei.com/index.php?s=/addon/WeiSite/WeiSite/index.html"
},
{
"name":"网页授权",
"sub_button":[
{
"type":"view",
"name":"base型",
"url":"http://www.liangtianmei.com/menu.php"
},
{
"type":"view",
"name":"userinfo型",
"url":"http://www.liangtianmei.com/menu.php"
}
]
}]
}';
post($url,$post);
}
function snsapi_base($appid,$appsecret,$redirect_url){
$snsapi_base_url="https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$redirect_url}&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
if(!isset($_GET['code'])){
header("Location:{$snsapi_base_url}");
}
$code=$_GET['code'];
$url="https://api.weixin.qq.com/sns/oauth2/access_token?appid={$appid}&secret={$appsecret}&code={$code}&grant_type=authorization_code";
get($url);
}
function snsapi_userinfo($appid,$appsecret,$redirect_url){
$snsapi_userinfo_url="https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$redirect_url}&response_type=code&scope=snsapi_userinfo&state=1443#wechat_redirect";
if(!isset($_GET['code'])){
header("Location:{$snsapi_userinfo_url}");
}
$code=$_GET['code'];
//return $code;exit;
//return $appid;exit;
$urlll="https://api.weixin.qq.com/sns/oauth2/access_token?appid={$appid}&secret={$appsecret}&code={$code}&grant_type=authorization_code";
$rrr= get($urlll);
$access_token=$rrr['access_token'];
$openid=$rrr['openid'];
//return $access_token;exit;
$urls="https://api.weixin.qq.com/sns/userinfo?access_token={$access_token}&openid={$openid}&lang=zh_CN";
return get($urls);
//return get($urls);
}
//echo snsapi_userinfo();
?>
Run code
Cut to clipboard
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // 对认证证书来源的检查,FALSE表示阻止对证书的合法性的检查。
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // 从证书中检查SSL加密算法是否存在
Run code
Cut to clipboard
文章:Weiphp后台群发推送微信公众号文章插件【基础/单篇推送】 发表时间:2017-12-11, 15:33:06
#730
作者:广西南宁市
更新数据
#,广西南宁市,2017-12-09,17:22:56,
const formatTime = date => {
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const second = date.getSeconds()
return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}
const formatNumber = n => {
n = n.toString()
return n[1] ? n : '0' + n
}
//服务器时间戳
function ntime(utilMd5, that){
wx.request({
url: 'https://hhh.liangtianmei.com/ntime.php',//请修改为你服务器
data: {
},
header: {
'content-type': 'application/json'
},
success: function (res) {
//return res;
var ttken = 'JLI5vvqq0KRnzfla';//密钥
//var ttime = parseInt(Date.parse(new Date()) / 1000);//时间 秒
var ttime = res.data;//util.ntime();
var ntoken = ttken + ttime;
var token = utilMd5.hexMD5(ntoken);
//console.log(token);
//return token;
var url = 'https://hhh.liangtianmei.com/index.php/Home/Product/index';
updatenew(url, token, that);
}
})
}
//更新数据
function updatenew(url, token, that) {
wx.request({
url: url,//'https://hhh.liangtianmei.com/index.php/Home/Product/index', //仅为示例,并非真实的接口地址
data: {
token: token
},
method: 'GET',
header: {
'content-type': 'application/json' // 默认值
},
success: function (res) {
// alert(res.data)
// res.data.content = app.convertHtmlToText(res.content)
/*that.setData({ textdata: res.data });
console.log (res.data)*/
// that.setData(res.data)
/*that.setData({
all: res.data//第一个data为固定用法,第二个data是json中的data
})*/
//console.log(token);
//console.log(res)
that.setData({
all: res.data
// imageUrl: "../images/sp_07.png"//触发事件时的图片
})
}
})
}
//构造令牌
// 在需要使用的js文件中,导入js
//var util = require('../../utils/util.js');
/*var ttken ='JLI5vvqq0KRnzfla';//密钥
var ttime = parseInt(Date.parse(new Date())/1000);//时间 秒
//var ttime = util.ntime();
var ntoken=ttken+ttime;
var token = utilMd5.hexMD5(ntoken);
console.log(token);*/
//end
module.exports = {
formatTime: formatTime,
ntime: ntime
}
Run code
Cut to clipboard
//构造令牌 使用服务器时间戳
var utilMd5 = require('../../utils/md5.js');
var util = require('../../utils/util.js');
// pages/product/product.js
Page({
/**
* 页面的初始数据
*/
data: {
// tabs:["泰国香米","湖北早梗米"],
// clickId:0,//默认选中的键值,从零开始
// imageUrl:'../images/sp_0777.png'//默认图片
titlessss:'产品中心'
},
btn_primary: function (event) {
console.log(event)
var that = this;
this.setData({
clickId: event.currentTarget.id,
// imageUrl: "../images/sp_07.png"//触发事件时的图片
})
} ,
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
var app = getApp();//获取app小程序实例
// WxParse.wxParse('content', 'html', content, that, 5)
wx.login({
success: function (res) {
if (res.code) {
//更新数据
util.ntime(utilMd5, that);
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
Run code
Cut to clipboard
文章:微信小程序开发笔记 发表时间:2017-12-09, 17:22:36
#731
作者:广西南宁市
纸张边角卷起效果
<script type="text/javascript">
function isIE() {
if (!!window.ActiveXObject || "ActiveXObject" in window || navigator.userAgent.indexOf("Edge")>-1){
return true;
}
else{
return false;
}
}
if(isIE()) {
alert("不支持IE,谢谢!")
window.open('www.lizhenhu.com');
}
</script>
<style type="text/css">
.page-wrap,.page-inner{
margin: 0 auto;
width: 600px;
padding: 50px 0 0 60px;
background: #fff;
border-radius: 0 20px 0 0;
text-align: justify;
}
.page-inner{
padding: 0 60px 40px 0;
}
.page-wrap{
position: relative;
margin-left: 0;
filter: drop-shadow(0px 0px 25px #aaa);
}
.page-wrap:before{
content: '';
display: block;
position: absolute;
right: -60px;
top: 0;
width: 60px;
height: 50px;
background: linear-gradient(42deg, #ddd 30%, rgba(0,0,0,0) 40%)
}
</style>
<div class="page-wrap">
<div class="page-inner">
</div>
</div>
Run code
Cut to clipboard
文章:巧用边框设置一些效果 发表时间:2017-12-09, 15:13:50
#732
作者:广西南宁市
模拟一串数字更新的效果
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body,html{
margin: 0;
padding: 0;
font-size: 16px
}
.number li {
width: 16px;
height: 16px;
line-height: 16px;
display: inline-block;
overflow: hidden;
}
.number li span {
display: block;
transform: translateY(0%);
}
.number li.active span {
animation: move 0.3s;
animation-fill-mode: forwards;
}
@keyframes move {
from {
transform: translateY(0);
}
to {
transform: translateY(-100%);
}
}
</style>
</head>
<body>
<ul id="main" class="number"></ul>
<script type="text/javascript">
function makeThreeNum(num){
var num = (num || "").toString();
return num.match(/\d{1,3}/g).join(',');
}
function getRand(max, min){
return parseInt(Math.random()*(max-min)+min);
}
function addStep(base){10
return (parseInt(getRand(0, 10)) + parseInt(base));
}
var w_old = 123456789;
function update(oldNum, newNum){
w_old = newNum;
var oldNum = makeThreeNum(oldNum),
newNum = makeThreeNum(newNum),
numberHTML = '';
for (var i = 0; i < oldNum.length; i++) {
if(oldNum[i] !== newNum[i]){
numberHTML += "<li class=\"group active\"><span class=\"old\">" + oldNum[i] + "</span><span class=\"new\">" + newNum[i] + "</span></li>";
}else{
numberHTML += "<li class=\"group\"><span class=\"old\">" + oldNum[i] + "</span><span class=\"new\">" + newNum[i] + "</span></li>";
}
}
document.getElementById('main').innerHTML = numberHTML;
}
window.setInterval(function(){
update(w_old, addStep(w_old));
}, 1000);
</script>
</body>
</html>
Run code
Cut to clipboard
文章:仿造百度经验分享翻牌数字效果做纸牌数字时钟特效 发表时间:2017-12-09, 15:04:11
#733
作者:广西南宁市
互联网时代升级太快了,今天金融火,大家都玩金融。明天VR火,大家都来VR。后来直播火,大家都玩直播。现在的一个产品从0到有也就几个月的时间,活了就可以续命很久,没活基本上线就死。这也是导致很多人在互联网公司跳槽的一大原因。大家为了往正确的方向走,只能一步一步试水,最后找到自己的道路。 #,广西南宁市,2017-12-09,09:53:12, 我们是不想被标签化的90后,不要用你想象中的“我们”来定义“我们”。 #,广西南宁市,2017-12-09,09:53:22, 标准的90后口径,这一个标签又被贴上了 #,广西南宁市,2017-12-09,09:53:33, 这届年轻人和你想的有点不一样 #,广西南宁市,2017-12-09,14:56:06, 选择没有对错 只是结果不同 #,广西南宁市,2017-12-09,14:56:33, 还有机会“触底反弹”吗? #,广西南宁市,2017-12-09,14:59:05, 不要妄想营销能让59分的剧再+1分
文章:我是个失败的创业者,因为我是劳模 发表时间:2017-12-09, 09:52:52
#735
作者:广西南宁市
js获取时间new date()
#,广西南宁市,2017-12-09,14:25:04, JavaScript 获取当前时间戳:
第一种方法:
得到的结果:1280977330000 注意:这里得到的结果将后三位(毫秒)转换成了000显示
第二种方法:
结果:1280977330748
第三种方法:
结果:1280977330748 #,广西南宁市,2017-12-09,14:26:15, js中单独调用new Date(),例如document.write(new Date());
显示的结果是:Mar 31 10:10:43 UTC+0800 2012 这种格式的时间
但是用new Date() 参与计算会自动转换为从1970.1.1开始的毫秒数。 #,广西南宁市,2017-12-09,14:32:20,@2 , #,广西南宁市,2017-12-09,14:32:41, #,广西南宁市,2017-12-09,14:38:25, js取整数、取余数的方法 #,广西南宁市,2017-12-09,14:39:54,@5 , js 取整数部分
var myDate = new Date();//获取系统当前时间
myDate.getYear(); //获取当前年份(2位)
myDate.getFullYear(); //获取完整的年份(4位,1970-????)
myDate.getMonth(); //获取当前月份(0-11,0代表1月)
myDate.getDate(); //获取当前日(1-31)
myDate.getDay(); //获取当前星期X(0-6,0代表星期天)
myDate.getTime(); //获取当前时间(从1970.1.1开始的毫秒数)
myDate.getHours(); //获取当前小时数(0-23)
myDate.getMinutes(); //获取当前分钟数(0-59)
myDate.getSeconds(); //获取当前秒数(0-59)
myDate.getMilliseconds(); //获取当前毫秒数(0-999)
myDate.toLocaleDateString(); //获取当前日期
var mytime=myDate.toLocaleTimeString(); //获取当前时间
myDate.toLocaleString( ); //获取日期与时间
Run code
Cut to clipboard
第一种方法:
var timestamp =Date.parse(new Date());
Run code
Cut to clipboard
第二种方法:
var timestamp =(new Date()).valueOf();
Run code
Cut to clipboard
结果:1280977330748
第三种方法:
var timestamp=new Date().getTime();
Run code
Cut to clipboard
结果:1280977330748
显示的结果是:Mar 31 10:10:43 UTC+0800 2012 这种格式的时间
但是用new Date() 参与计算会自动转换为从1970.1.1开始的毫秒数。
<script>
alert(Date.parse('Jul 8, 2005'));
alert(new Date());
alert(parseInt(new Date()));
</script>
Run code
Cut to clipboard
new Date() ; //参数可以为整数; 也可以为字符串; 但格式必须正确
new Date(2009,1,1); //正确
new Date("2009/1/1"); //正确
new Date("2009-1-1"); //错误
Run code
Cut to clipboard
1.丢弃小数部分,保留整数部分
parseInt(5/2)
2.向上取整,有小数就整数部分加1
Math.ceil(5/2)
3,四舍五入.
Math.round(5/2)
4,向下取整
Math.floor(5/2)
Math 对象的方法
FF: Firefox, N: Netscape, IE: Internet Explorer
方法 描述 FF N IE
abs(x) 返回数的绝对值 1 2 3
acos(x) 返回数的反余弦值 1 2 3
asin(x) 返回数的反正弦值 1 2 3
atan(x) 以介于 -PI/2 与 PI/2 弧度之间的数值来返回 x 的反正切值 1 2 3
atan2(y,x) 返回从 x 轴到点 (x,y) 的角度(介于 -PI/2 与 PI/2 弧度之间) 1 2 3
ceil(x) 对一个数进行上舍入。 1 2 3
cos(x) 返回数的余弦 1 2 3
exp(x) 返回 e 的指数。 1 2 3
floor(x) 对一个数进行下舍入。 1 2 3
log(x) 返回数的自然对数(底为e) 1 2 3
max(x,y) 返回 x 和 y 中的最高值 1 2 3
min(x,y) 返回 x 和 y 中的最低值 1 2 3
pow(x,y) 返回 x 的 y 次幂 1 2 3
random() 返回 0 ~ 1 之间的随机数 1 2 3
round(x) 把一个数四舍五入为最接近的整数 1 2 3
sin(x) 返回数的正弦 1 2 3
sqrt(x) 返回数的平方根 1 2 3
tan(x) 返回一个角的正切 1 2 3
toSource() 代表对象的源代码 1 4 -
valueOf() 返回一个 Math 对象的原始值
代码案例:
<script type="text/javascript">
//取整
function getResult(num){
return parseInt(num);
}
//四舍五入到num后面的n位
function getResult(num,n){
return Math.round(num*Math.pow(10,n))/Math.pow(10,n);
}
//截取n位
function getresult(num,n){
return num.toString().replace(new RegExp("^(\\-?\\d*\\.?\\d{0,"+n+"})(\\d*)$"),"$1")+0;
}
其他:
var mLength = textMn.length;
var mFirst = parseInt(mLength/60);
//取整
//alert(mLength);
var mLast = mLength; //取余
if(mLast>0){
$(".mood_content").height((mFirst+1)*20);
}
Run code
Cut to clipboard
文章:微信小程序开发笔记 发表时间:2017-12-09, 14:23:46
#737
作者:广西南宁市
找到现在桌面背景图片的保存位置
自己保存的主题主题C:\Users\Samir(你的电脑名字)\AppData\Local\Microsoft\Windows\Themes
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Themes\CachedFiles
Run code
Cut to clipboard
文章:程序员编程常用网页工具集[游戏] 发表时间:2017-12-08, 16:21:38
#738
作者:广西南宁市
nginx证书填写路径报错:library:fopen:Unknown error:fopen
NGINX BIO_new_file
问题分析:只要写绝对路径,就会报错,无论windows还是linux,怀疑是对路径的处理有问题
解决办法
windows下,将证书文件放到conf目录下,
linux下,将证书文件放到nginx.conf所在的目录下
NGINX BIO_new_file
2016/03/21 16:57:10 [emerg] 30420#29876: BIO_new_file("C:
ginx-1.9.9\ssl\1_domain_bundle.crt") failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen('C:
ginx-1.9.9\ssl\1_domain_bundle.crt','r') error:2006D002:BIO routines:BIO_new_file:system lib)
2016/03/21 16:57:11 [alert] 29884#31740: worker process 30420 exited with code 1
2016/03/21 16:57:11 [alert] 29884#31740: could not respawn worker
2016/03/21 16:57:28 [emerg] 28212#30316: BIO_new_file("C:
ginx-1.9.9\ssl\1_domain_bundle.crt") failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen('C:
ginx-1.9.9\ssl\1_domain_bundle.crt','r') error:2006D002:BIO routines:BIO_new_file:system lib)
Run code
Cut to clipboard
问题分析:只要写绝对路径,就会报错,无论windows还是linux,怀疑是对路径的处理有问题
解决办法
windows下,将证书文件放到conf目录下,
linux下,将证书文件放到nginx.conf所在的目录下
文章:免费ssl证书:网站域名使用 https (nginx) 访问配置参考 发表时间:2017-12-08, 11:44:17
#740
作者:广西南宁市
微信公众号内插入别人视频
1.用浏览器打开公众号文章,在空白处点击右键 点击查找网页源代码

进入源代码页面后 Ctrl+f 右上角小框 在小框内输入 v.qq.vom 找到视频的网址 将https-----; 这段网址进行复制

复制网址之后粘贴到记事本中
记视频链接一
2.进入腾讯视频 随便打开一个视频 复制这个视频的链接地址

将随便找的视频地址复制到记事本中
记视频链接2
将 视频链接一 的 vid=**** 和 视频链接2 的 vid=**** 进行替换 得到一个新的链接地址(记视频链接三)

将替换后的新地址(记视频链接三)在浏览器中打开 在视频播放器底部分享处复制引用iframe框架html网址链接即可 按上面教程

#,广西南宁市,2017-12-07,16:38:28,
最多只能添加三个视频 #,广西南宁市,2017-12-07,16:55:13, #,广西南宁市,2017-12-07,18:29:15, iframe有id等其他自定义标签属性等可能推送过去空白被过滤掉无视频框架
1.用浏览器打开公众号文章,在空白处点击右键 点击查找网页源代码
进入源代码页面后 Ctrl+f 右上角小框 在小框内输入 v.qq.vom 找到视频的网址 将https-----; 这段网址进行复制
复制网址之后粘贴到记事本中
记视频链接一
2.进入腾讯视频 随便打开一个视频 复制这个视频的链接地址
将随便找的视频地址复制到记事本中
记视频链接2
将 视频链接一 的 vid=**** 和 视频链接2 的 vid=**** 进行替换 得到一个新的链接地址(记视频链接三)
将替换后的新地址(记视频链接三)在浏览器中打开 在视频播放器底部分享处复制引用iframe框架html网址链接即可 按上面教程
<iframe class="video_iframe js_asyningdom wx_video_iframe" data-vidtype="2" allowfullscreen="" frameborder="0" width="556" height="auto" src="https://v.qq.com/iframe/preview.html?vid=f1321gelc26&width=556&height=auto&auto=0"></iframe>
Run code
Cut to clipboard
文章:手机微网站客户端微信公众平台微官网网站添加播放视频链接地址教程 发表时间:2017-12-07, 15:11:54
#741
作者:广西南宁市
//视频 2017.12.07
$s['content']=str_ireplace('#iframesrc#','<iframe src="',$s['content']);
$s['content']=str_ireplace('#/iframesrc#','" width="100%" height="300" scrolling="no" frameborder="0"></iframe>',$s['content']);
$content=$s['content'];
Run code
Cut to clipboard
<p>#iframesrc#https://v.qq.com/iframe/player.html?vid=l0515xe3dfr&tiny=0&auto=0#/iframesrc##iframesrc#https://v.qq.com/iframe/player.html?vid=f05153v0sdp&tiny=0&auto=0#/iframesrc#</p>
Run code
Cut to clipboard
文章:Weiphp后台群发推送微信公众号文章插件【基础/单篇推送】 发表时间:2017-12-07, 14:44:46
下联:拍大腿后悔 拍屁股走人
横批:一地鸡毛