上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 97 下一页
摘要: linux shell每秒执行的方法<pre>startphpfpm.sh文件如下#!/bin/shwhile [ true ]; dosleep 1currTime=$(date +"%Y-%m-%d %T");echo "ddd ${currTime}" >> /data/web/mircowe 阅读全文
posted @ 2019-11-12 15:58 newmiracle宇宙 阅读(889) 评论(0) 推荐(0) 编辑
摘要: php数据库编码都改成utf8mb4 然后存入的时候 数据库表显示的是??不用管 只要读取出来是emoji就对了 黑白的 阅读全文
posted @ 2019-11-12 15:57 newmiracle宇宙 阅读(607) 评论(0) 推荐(0) 编辑
摘要: jquery trim重写<pre>String.prototype.trim = function(char, type) { if (char) { if (type == 'left') { return this.replace(new RegExp('^\\' + char + '+', 阅读全文
posted @ 2019-11-12 15:57 newmiracle宇宙 阅读(69) 评论(0) 推荐(0) 编辑
摘要: javascript微信ios自动播放音效方法<pre> wx.config({ //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: $('#appI 阅读全文
posted @ 2019-11-12 15:56 newmiracle宇宙 阅读(348) 评论(0) 推荐(0) 编辑
摘要: layaair截图的方法<pre> function jietu() { var xiaoches = getsp("/lanchengwuyi/images/9/chezi.png", 750 / 2 - 60, 1206 - 220); xiaoches.pivotX = 0; xiaoches 阅读全文
posted @ 2019-11-12 15:55 newmiracle宇宙 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: javascript eval动态变量的方法<pre>var dd = 'fe';var ss = "cc('" + dd + "')";//先确认要运行的alert(ss);eval(ss); function cc(dd) { alert(dd); return false} </pre><pr 阅读全文
posted @ 2019-11-12 15:55 newmiracle宇宙 阅读(628) 评论(0) 推荐(0) 编辑
摘要: PHP imagick判断图片是否有透明通道<pre> $xiangmupath = $this->getxiangmupath(); $cehipsd = $xiangmupath . '/images/1/p1_wz1.png'; $im = new \Imagick($cehipsd); $s 阅读全文
posted @ 2019-11-12 15:46 newmiracle宇宙 阅读(566) 评论(1) 推荐(0) 编辑
摘要: layaair matterjs教程 <pre>$(function() { var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRen 阅读全文
posted @ 2019-11-12 15:45 newmiracle宇宙 阅读(316) 评论(0) 推荐(0) 编辑
摘要: jquery tweenmax时间轴动画<pre><!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <title>{$title}</title> <meta name="viewport" content="width= 阅读全文
posted @ 2019-11-12 15:42 newmiracle宇宙 阅读(212) 评论(0) 推荐(0) 编辑
摘要: javascript tofixed四舍五入的方法 <pre>Number.prototype.toFixed = function(d) { var s = this + ""; if (!d) d = 0; if (s.indexOf(".") == -1) s += "."; s += new 阅读全文
posted @ 2019-11-12 15:41 newmiracle宇宙 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 97 下一页