Dev
搜索

Dev

easljs drawCircle 变椭圆的解决办法
发表于2015-12-17|createjs
很可能是设置了canvas的css样式 canvas应该通过属性width和height去设置长高,否则会出现椭圆 示例: [pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] <canvas id='gameview' width="210" height="210"></canvas> [/pcsh]  
easljs Shape 类
发表于2015-12-17|createjs
使用方法: 会生成一个Graphic实例,用graphics属性可以获取他 示例: [pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] var shape = new createjs.Shape(); shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 50); [/pcsh]    
js 事件 默认传参
发表于2015-12-17|js
使用easljs时,要在图片完全加载后才能使用Bitmap进行初始化 用到了onload事件,发现这个事件会默认传递事件‘event’过去 不知其他事件是不是都是这样的 示例: [pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] image.onload = function(e){ img = new createjs.Bitmap(e.target); stage.addChild(img); stage.update(); } [/pcsh]    
createjs easeljs 容器
发表于2015-12-16|createjs
createjs有两个‘容器’ 一个是‘stage’ 一个是‘container’ 如果东西向过多,可以放到‘container’中 刷新之后才能显示 示例:  
PHP 关闭错误提示的方法
发表于2015-12-16|php
[pcsh lang=”php” tab_size=”4” message=”” hl_lines=”” provider=”manual”] ini_set("display_errors", "Off"); error_reporting(E_ALL | E_STRICT); [/pcsh]      
apache 阿帕奇 2.4.x 2.4.9 403 允许外部访问
发表于2015-12-16|others
1.检查 Require all granted 2.apache的www目录最好别有空格!!!
mysqli_stmt_close
发表于2015-12-16|php
mysqli_stmt::close – mysqli_stmt_close —关闭prepared statement 面向对象写法: bool mysqli_stmt::close ( void ) 面向过程: bool mysqli_stmt_close ( mysqli_stmt $stmt )  
mysqli_stmt_field_count
发表于2015-12-16|php
mysqli_stmt::$field_count – mysqli_stmt_field_count — Returns the number of field in the given statement 获得行数 面向对象风格 int $mysqli_stmt->field_count; 过程化风格 int mysqli_stmt_field_count ( mysqli_stmt $stmt )
php mysqli_stmt_fetch
发表于2015-12-16|php
mysqli_stmt::fetch – mysqli_stmt_fetch — Fetch results from a prepared statement into the bound variables 获取prepared statement 绑定变量语句执行后的结果? 写法: 面向对象风格: bool mysqli_stmt::fetch ( void ) 过程化风格 bool mysqli_stmt_fetch ( mysqli_stmt $stmt ) 参数 stmt 仅以过程化样式:由 mysqli_stmt_init() 返回的 statement 标识。
PHP array_unshift() 函数
发表于2015-12-16|php
定义和用法 array_unshift() 函数用于向数组插入新元素。新数组的值将被插入到数组的开头。 被加上的元素作为一个整体添加,这些元素在数组中的顺序和在参数中的顺序一样。 该函数会返回数组中元素的个数。
1…767778…103
avatar
developer
AI相伴的开发者博客
文章
1030
标签
737
分类
36
Follow Me
公告
This is my Blog
最新文章
wsl2中podman总是需要登录解决办法2026-10-10
wsl2中ipv6速度慢2026-10-10
fast-whisper音视频转文字2026-10-02
rn开发中断开手机再连上后连不上metro2026-10-01
zed编辑器ESLint报错2026-10-01
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
png 算法 psd Generator 接口测试 自动 为新开发 mb_ereg_replace 自定义字段面板 end 不准 兼容模式 ssh movieclip json https 内部指针 chrome 管理工具 灵异事件 metro event 菜单 客户端等 rn 发红包 windows 禁止 环境 poppler mysql_fetch_object COS 和数组 性能测试 解密 拓展 stdClass 时间对象问题 pull Promise对象
归档
  • 十月 2026 5
  • 八月 2026 1
  • 六月 2026 2
  • 五月 2026 1
  • 四月 2026 2
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
网站信息
文章数目 :
1030
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中