$('#k').live('keydown',function(event){ if (event.keyCode==38){ /*$(this).addClass("active"); $(this).siblings().removeclass("active"); $("#k").val($(this).text());*/ var autoNodes = $(".checktype").children("l…
select 选项 : 关键字 all :全部(默认值)distinct:去掉重复的查询结果.语法:select all * from 表名: 别名: 关键字:as 语法:select * from 表名 as 别名: 虚拟表:名称dual 可以没有表名可当计算器使用. 子句:where group by having order by limit where子句: 语法:select * from 表名 where 条件语句: group by 子句: 分组查询语句 关键字 sum()总和 m…
今天写一个demo,要用到鼠标键盘控制三维视角,因此写了个脚本用于控制. 该脚本可以用于即时战略类游戏的视角,提供了缩进,拉伸,旋转.同时按住鼠标右键不放,移动鼠标可以实现第一人称视角的效果. using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour { public float near = 20.0f; public float far = 100.0f; public…