上一页 1 ··· 85 86 87 88 89 90 91 92 93 ··· 97 下一页
摘要: 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) 编辑
摘要: imagick scaleImage 等比例缩小图片<pre> $watermark->readImage(__DIR__ . '/../../../Public/' . self::COMMONURL . '/images/shuzi/' . $jinian . '.png'); $waterma 阅读全文
posted @ 2019-11-12 15:40 newmiracle宇宙 阅读(464) 评论(0) 推荐(0) 编辑
摘要: webgl shader先处理顶点 再处理颜色 比方说画三角形vs那就先弄好3个三角形顶点的坐标 fs然后设置颜色 比方说纹理贴图(方形图片)vs 先弄好4个顶点 fs然后纹理贴图 ps:需要注意的是varying 这个东西只用于画渐变和纹理贴图需要用 阅读全文
posted @ 2019-11-12 15:40 newmiracle宇宙 阅读(143) 评论(0) 推荐(0) 编辑
摘要: cocoscreator动态修改数据教程<pre> cc.Class({ extends: cc.Component, properties: { label: { default: null, type: cc.Label }, label1: { default: null, type: cc. 阅读全文
posted @ 2019-11-12 15:38 newmiracle宇宙 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 1 先做子精灵 wrapmode模式不一样的精灵动画 然后再做父精灵动画 准没错 ps:一旦创建了父精灵 wrapmode会自动给所有子精灵 wrapmode加上 这个时候 需要 给子精灵手动添加anim组件 创建个clip拖进去 刷新下就好 一般建议直接在父精灵设置 全部normal就好 不要在紫 阅读全文
posted @ 2019-11-12 15:37 newmiracle宇宙 阅读(354) 评论(0) 推荐(0) 编辑
摘要: nginx location笔记= 开头表示精确匹配^~ 开头表示uri以某个常规字符串开头,理解为匹配 url路径即可。nginx不对url做编码,因此请求为/static/20%/aa,可以被规则^~ /static/ /aa匹配到(注意是空格)。~ 开头表示区分大小写的正则匹配~* 开头表示不 阅读全文
posted @ 2019-11-12 15:36 newmiracle宇宙 阅读(61) 评论(0) 推荐(0) 编辑
摘要: layaair 3D教程 里面模型包括摄像机默认中心点都是中心 <pre> var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 10, 阅读全文
posted @ 2019-11-12 15:36 newmiracle宇宙 阅读(512) 评论(0) 推荐(0) 编辑
摘要: nginx服务器图片防盗链的方法<pre> location ~* \.(gif|jpg|png|jpeg)$ { expires 30d; valid_referers *.shuchengxian.com www.shuchengxian.com; if ($invalid_referer) { 阅读全文
posted @ 2019-11-12 15:35 newmiracle宇宙 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 手机端滑动效果简单做法把高度设死 然后overflow-y: scroll; 就可以了 可以用手滑动了 不过他的优先级很低 会被body或者swiper覆盖 所以一般这种情况 就只能取消body和swiper的触摸机制ps:给body高度设置100% 也行 阅读全文
posted @ 2019-11-12 15:34 newmiracle宇宙 阅读(402) 评论(0) 推荐(0) 编辑
摘要: navicat for Mysql查询数据不能直接修改 原来的sql语句: <pre> select id,name,title from table where id = 5;</pre> 修改为: <pre> select * from table where id = 5;</pre> 然后下 阅读全文
posted @ 2019-11-12 15:34 newmiracle宇宙 阅读(516) 评论(0) 推荐(0) 编辑
上一页 1 ··· 85 86 87 88 89 90 91 92 93 ··· 97 下一页