会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
武卡卡的个人博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
24
25
26
27
28
29
30
31
32
···
39
下一页
2019年8月2日
JS - 音频的播放和暂停
摘要: $(".gameSound").bind("click",function() { var audio = document.getElementById('music1'); if(audio.paused){ $(".gameSound").css({ //切换到播放的背景图片 "backgro
阅读全文
posted @ 2019-08-02 14:31 武卡卡
阅读(1896)
评论(0)
推荐(0)
2019年8月1日
jquery播放mp3
摘要: $("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 武卡卡
阅读(1798)
评论(0)
推荐(0)
2019年7月29日
Atom 插件推荐
摘要: (1)atom-ternjs : js(e6)的自动补充 (2)key-binding-mode : atom 快捷键管理 (3)pre-view : pdf预览 (4)activate-power-mode : 相信很多人开始用atom是因为看了关于这个超级炫酷的动画来的,它让你敲代码的时候产生炫
阅读全文
posted @ 2019-07-29 21:31 武卡卡
阅读(710)
评论(0)
推荐(0)
PC端页面适应不同的分辨率的方法 (转载)
摘要: 原文地址:https://blog.csdn.net/fengzhen8023/article/details/81281117 上周完成一个PC端的项目,对于我这样的小白来说,这个项目里面最大的问题就是,如何做到让HTML页面适应电脑的不同分辨率。 通过师傅的指导和自己查阅资料,最终成功适配不同的
阅读全文
posted @ 2019-07-29 15:15 武卡卡
阅读(4786)
评论(0)
推荐(0)
2019年7月26日
JS - 使 input 失去焦点
摘要: $(document).ready(function(){ $("body").click(function(){ if(!event.srcElement.type) { $("input").blur(); } }) }) $(document).ready(function(){ $("bod
阅读全文
posted @ 2019-07-26 16:34 武卡卡
阅读(4007)
评论(0)
推荐(0)
2019年7月25日
JS - 局部方法改变全局变量的值
摘要: var a = "" function aa() { a="卡卡" } aa() // 注意,aa() 一定要执行,局部赋值全局变量才会有作用 alert(a)
阅读全文
posted @ 2019-07-25 22:20 武卡卡
阅读(6894)
评论(0)
推荐(2)
apicloud - addEventListener 接收不到 sendEvent 的解决方法
摘要: 要将 api.addEventListener 放在最前面 , 减少受到其他事件的影响 apiready = function () { api.addEventListener({ name : 'close' }, function(ret, err) { 。。。 }); api.addEven
阅读全文
posted @ 2019-07-25 16:29 武卡卡
阅读(1207)
评论(0)
推荐(0)
2019年7月21日
PHP - 接收检验验证码 , 以JSON的形式将验证结果返回给前端
摘要: <?php session_start(); $codeT = strtoupper(trim($_POST['codeT']));//接收前端传来的数据,转换成大写 $raw_success = array('codeT' => 1, 'msg' => '验证码正确'); $raw_fail =
阅读全文
posted @ 2019-07-21 11:10 武卡卡
阅读(406)
评论(0)
推荐(0)
2019年7月20日
CSS - input 美化
摘要: input{ padding: 20px; width: 100%; height: 5vh; margin-bottom: 2vh; border-radius: 10vw; border: 0; outline-style: none; } input{ padding: 20px; width
阅读全文
posted @ 2019-07-20 21:29 武卡卡
阅读(714)
评论(0)
推荐(0)
屏幕适配 - JS - 网站布局元素
摘要: 网页可见区域宽:document.body.clientWidth; 网页可见区域高:document.body.clientHeight; 网页可见区域高:document.body.offsetWidth (包括边线的宽);网页可见区域高:document.body.offsetHeight (
阅读全文
posted @ 2019-07-20 18:19 武卡卡
阅读(306)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
···
39
下一页
公告