上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 38 下一页
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>事件绑定与监听的区别</title> </head> <body> <button id="btnA">按钮A</button> <button id="btnB">按钮B</bu 阅读全文
posted @ 2020-06-17 15:30 小猿笔记 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 在安装mysql时,出现“The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Acc 阅读全文
posted @ 2020-06-17 15:23 小猿笔记 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 前言:有个需求就是访问指定URL自动跳转到指定的URL,禁止返回上一页。首先想到是写个静态网页,通过调用js相关方法可以实现。以下是示例代码: <html> <head> <meta charset="UTF-8"> <title>webredirection</title> <meta http- 阅读全文
posted @ 2020-06-17 15:18 小猿笔记 阅读(3882) 评论(0) 推荐(0) 编辑
摘要: select t_date,type,sum(price) as total_price,count(*) as news_count from (select date_format(log_time,'%Y-%m-%d') as t_date,type,price from test_1 ) a 阅读全文
posted @ 2020-06-17 15:02 小猿笔记 阅读(12776) 评论(0) 推荐(0) 编辑
摘要: 在一些移动端浏览器上,如果点击图片,会产生一个浏览图片的行为。 QQ没有这种默认行为,但是UC浏览器有。 所以为了达到一致的效果,这种默认的浏览行为是需要被禁止的。 下面介绍几种方法: 1.在img元素上添加 onclick="return false" <img src="a.png" oncli 阅读全文
posted @ 2020-06-17 14:49 小猿笔记 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1、获取时间戳 (1)、os.time() --当前时间戳 (2)、 os.time() --指定时间的时间戳 2、获取指定格式时间 (1)、时间格式 yyyyMMddHHmmss: os.date("%Y%m%d%H%M%S", os.time()) --20180905193023 (2)、时间 阅读全文
posted @ 2020-06-17 12:33 小猿笔记 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 1、insert 1 do 2 t1 = {"欲", "泪", "成", "雪"} 3 table.insert(t1,"seeyou")-- 往t1末尾插入元素 "seeyou" 4 table.insert(t1, 3, "bug")-- 往t1索引为3的位置插入元素"bug" 5 for i, 阅读全文
posted @ 2020-06-17 12:29 小猿笔记 阅读(444) 评论(0) 推荐(0) 编辑
摘要: var_dump(1 == true); //bool(true) var_dump(0 == false); //bool(true) var_dump(-1 == false); //bool(false) var_dump(0 == true); //bool(false) var_dump( 阅读全文
posted @ 2020-06-17 12:09 小猿笔记 阅读(286) 评论(0) 推荐(0) 编辑
摘要: //php随机生成汉字 $num为生成汉字的数量 function getChars($num){ $b = ''; for ($i=0; $i<$num; $i++) { // 使用chr()函数拼接双字节汉字,前一个chr()为高位字节,后一个为低位字节 $a = chr(mt_rand(0xB 阅读全文
posted @ 2020-06-17 12:07 小猿笔记 阅读(168) 评论(0) 推荐(0) 编辑
摘要: //汉字字符转数组 function chStrToArray($str){ $length = mb_strlen($str, 'utf-8'); $array = array(); for ($i=0; $i<$length; $i++) $array[] = mb_substr($str, $ 阅读全文
posted @ 2020-06-17 12:06 小猿笔记 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 38 下一页