包
程序运行入口是 main 包
1 | package go |
导入
使用 import 导入包
Update your browser to view this website correctly. Update my browser now
演示新窗口打开 思路首先需要给这个正方体的父容器设置 transform-style 属性为 preserve-3d 这样才能保证子元素是在一个三位空间内,再给父元素的 position 设置为 relative,然后给子元素正方体这6个面改变角度和位置使其在正确的位置并更改其 positon 为
Content-Type application/x-www-form-urlencoded 将数据编码为name->value的键值对 multipart/formdata 将数据编码为一条信息 text/plain 数据以文本形式传输 text json xml html zip imag
Class在ES6中,引入了Class,可以很方便的来定义类。例如 123456789class A { constructor(x,y){ this.x=x; this.y=y; } toString(){ return this.x+this.y; }} 事实上ES6的class只是一个语法糖。
_Ajax简介简单封装的ajax库支持post和get方法 兼容IE7及以上浏览器和jQuery Ajax格式相似 源码源码 更新已更新jsonp跨域支持apioption123456789101112131415_Ajax({ "url":"", "method":"",//默认get "asyn
ES6引入Map的目的js 的对象本质上就是键值对集合也就是 Hash结构,但是只能用字符串作为键值,而 Map 就可以解决这个问题。 用法123456789101112var m= new Map();var o={ a:1};m.set(o,"123");m.get(o); // "123"m.
普通的程序员 email: garychangcn@hotmail.com
立方体 * { margin: 0; padding: 0; border: 0px; } .container { width: 100%; } /*.box:hover{ transform: rotateX(360deg) rotateY(360deg); }*/ @keyframes gog
class EventEmitter { constructor() { this._events = { } } emit(type) { var funL = this._events[type]; var args = Array.from(arguments).slice(1); funL.
模拟alert confirm prompt body { bottom: 0; border: 0; padding: 0; font-family: "微软雅黑"; background-color: #eee; } .container { display: flex; flex-wrap:
利用手机陀螺仪控制长方体运动 window.addEventListener("deviceorientation",function(event){ //alpha 一般正北为0 var console=document.getElementById("console"); console.inn