摘要: 1 <?php 2 //fopen($file,'w'); //打开文件/创建文件 3 //file_put_contents($file,$content)//写入文件 4 //file_get_contents($file)//读取文件 5 //json_encode();//对变量json编码 阅读全文
posted @ 2020-02-16 19:56 鸡儿er 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 1 //A算法 自动寻路 路径 2 class GetAutoPath{ 3 4 constructor(id, map, sPos, ePos, mapArr){ 5 //this.type = id.type; 6 this.id = id; 7 this.map = map; 8 this.s 阅读全文
posted @ 2020-02-16 19:52 鸡儿er 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 1 console对象 2 3 var o = {name:'3'} 4 console.assert(o.name '3', "name 的值应该为:string 3"); 5 6 console.time(); 7 console.timeEnd(); 8 9 debugger; //调试器, 阅读全文
posted @ 2020-02-16 19:50 鸡儿er 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 Date() 返回当日的日期和时间。 2 3 getTime() 返回 1970 年 1 月 1 日至今的毫秒数。 4 5 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。天 6 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6)。 星期 7 g 阅读全文
posted @ 2020-02-16 19:48 鸡儿er 阅读(327) 评论(0) 推荐(0) 编辑
摘要: main.hta code: 1 <script>window.resizeTo(400,300);</script> 2 <head> 3 4 <hta:application 5 6 id=myApplication 7 applicationName=myMusic 8 singleInsta 阅读全文
posted @ 2020-02-16 19:47 鸡儿er 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 var t='1.2'; 6 parseInt(t) //1 7 parseFloat(t)//1.2 8 Number(1.2)//1.2强制转换为数字 9 10 11 2.向上取整,有小数就整数部分加1 12 js: Math.ceil(7/2) 13 14 3,四舍五入. 阅读全文
posted @ 2020-02-16 19:43 鸡儿er 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 window method: 2 3 open(URL,窗口名称,窗口风格)//打开一个新的窗口,并在窗口中装载指定URL地址的网页 4 close()//close方法用于自动关闭浏览器窗口 5 alert(提示字符串)//弹出一个警告框 6 confirm(提示字符串)//显示一个确认框, 阅读全文
posted @ 2020-02-16 19:40 鸡儿er 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>纯CSS自适应响应式Table数据表格DEMO演示</title> 6 7 <style> 8 *{ 9 box-sizing: border-box; 10 阅读全文
posted @ 2020-02-16 19:38 鸡儿er 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 1 perspective 人看东西的距离 perspective: 500; 越小3d效果越好 2 3 perspective-origin观察视点。此处默认为视图的中心点 transform-origin:20% 40%; 4 5 transform-style 规定被嵌套元素如何在 3D 空间 阅读全文
posted @ 2020-02-16 19:36 鸡儿er 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 /* animation */ 2 .a-bounce,.a-flip,.a-flash,.a-shake,.a-swing,.a-wobble,.a-ring{-webkit-animation:1s ease;-moz-animation:1s ease;-ms-animation:1s e 阅读全文
posted @ 2020-02-16 19:35 鸡儿er 阅读(242) 评论(0) 推荐(0) 编辑