08 2019 档案

摘要:display: flex; justify-content: center; /* 水平居中 */ align-items: center; /* 垂直居中 */ 阅读全文
posted @ 2019-08-30 14:53 武卡卡 阅读(162) 评论(0) 推荐(0) 编辑
摘要:$("input").keydown(function(event){ if (event.keyCode == 13) { /* 提交或者别的操作 */ } }); $("input").keydown(function(event){ if (event.keyCode == 13) { /* 阅读全文
posted @ 2019-08-30 11:32 武卡卡 阅读(1646) 评论(0) 推荐(0) 编辑
摘要:var str = "11:222"; /* * 截取 “ :”之前和之后的值 */document.write(str.split(':')[0]) //输出11document.write(str.split(':')[1]) //输出222 阅读全文
posted @ 2019-08-29 14:15 武卡卡 阅读(7178) 评论(0) 推荐(0) 编辑
摘要:/** * 分发事件到事件流中。 * this.node.dispatchEvent(new cc.Event.EventCustom("name",是否向上传递)) * true:向上传递,传递到父节点。 * false:向下传递 */ var e = new cc.Event.EventCust 阅读全文
posted @ 2019-08-18 12:31 武卡卡 阅读(1302) 评论(0) 推荐(0) 编辑
摘要:1, 打开windows命令行 2, cd 到项目的文件夹 3, 执行 cocos run -p web 阅读全文
posted @ 2019-08-04 11:35 武卡卡 阅读(483) 评论(0) 推荐(0) 编辑
摘要:cocos new HelloJS -l js -p com.neworigin.HelloJS -d D:\0-Game\cocosJS-project 阅读全文
posted @ 2019-08-03 14:47 武卡卡 阅读(430) 评论(0) 推荐(0) 编辑
摘要:$(".gameSound").bind("click",function() { var audio = document.getElementById('music1'); if(audio.paused){ $(".gameSound").css({ //切换到播放的背景图片 "backgro 阅读全文
posted @ 2019-08-02 14:31 武卡卡 阅读(1887) 评论(0) 推荐(0) 编辑
摘要:$("button").on("click",function(){ $('embed').remove(); $('body').append('<embed src="../../../sound/hit.mp3" autostart="true" hidden="true" loop="fal 阅读全文
posted @ 2019-08-01 17:05 武卡卡 阅读(1788) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示