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…757677…102
avatar
developer
AI相伴的开发者博客
文章
1020
标签
721
分类
35
Follow Me
公告
This is my Blog
最新文章
taro+tailwind开发记录2026-04-07
hono js 使用记录2026-03-31
cmder使用记录2026-03-08
flutter getx使用记录2026-03-01
统计代码行数2026-02-27
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
备份 bug SSL 部分产品对比 utf8 常用算法 nginx ffmpeg 占位符 swarm 效果 等工具 1 语法高亮 conda jssdk ibdata1 模板字符串 读取 模型初始化 wp_filter 启动 数据不更新问题 腾讯云 nginx日志 获取 恢复 我的全新开始 指定目录 无法开启 文件 攻击 M方法 macos 工作模式 laravel trait 播放声音 tsc版本不同 workerman
归档
  • 四月 2026 1
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
  • 十二月 2025 5
  • 十一月 2025 2
  • 十月 2025 5
  • 九月 2025 5
网站信息
文章数目 :
1020
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中