摘要: using UnityEngine;using System.Collections;public class FirstView : MonoBehaviour {//方向灵敏度public float sensitivityX = 10F; public float sensitivityY = 阅读全文
posted @ 2018-04-03 22:13 涂鸟少年 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 日期格式兼容 一般 直接new Date() 是不会出现兼容性问题的,而 new Date(datetimeformatstring) 常常会出现浏览器兼容性问题,为什么,datetimeformatstring中的某些格式浏览器不兼容。 //日期参数 格式2 所有浏览器都兼容// var date 阅读全文
posted @ 2018-04-02 12:01 涂鸟少年 阅读(99) 评论(0) 推荐(0) 编辑
摘要: /** * 調系統命令 */ try { Process process = Runtime.getRuntime().exec("ipconfig"); Scanner scanner = new Scanner(process.getInputStream(),"gbk"); ... 阅读全文
posted @ 2018-04-01 15:16 涂鸟少年 阅读(65) 评论(0) 推荐(0) 编辑
摘要: /** * 连接好多的客户端 */ public void getManyCon(){ ServerSocket serverSocket = null; try { serverSocket = new ServerSocket(8889); while (true){ ... 阅读全文
posted @ 2018-04-01 14:43 涂鸟少年 阅读(192) 评论(0) 推荐(0) 编辑
摘要: package network; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.net.Socket; import java.util.Scanner; public class CliSocketTest { public void test()... 阅读全文
posted @ 2018-04-01 13:09 涂鸟少年 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.一个web工程webRoot|-html、jsp、css、js等文件|-WEB-INF |-classes目录 -- (java类) |-lib目录 -- (java类运行所需的jar包) |-web.xml文件 -- (web应用配置文件)附:WEB-INF目录外界不能直接访问,由web服务器 阅读全文
posted @ 2018-03-31 20:20 涂鸟少年 阅读(118) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class gui : MonoBehaviour { string editName; string editPassword; float toolBarValue0; fl... 阅读全文
posted @ 2018-03-31 12:52 涂鸟少年 阅读(149) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class sh : MonoBehaviour { public GameObject cube1; public GameObject cube2; public GameObject cube3... 阅读全文
posted @ 2018-03-31 12:13 涂鸟少年 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 String orderDate = orderYM + "-" + (date_index + 1); 2 //判断日期orderDate合法,存在性 3 4 try { 5 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); 6 format.setLenient(false); 7 ... 阅读全文
posted @ 2018-03-30 17:50 涂鸟少年 阅读(102) 评论(0) 推荐(0) 编辑
摘要: import java.util.Timer; import java.util.TimerTask; /** * Created by Administrator on 2018/3/30. */ class Yield extends Thread{ @Override public void run() { new Timer().schedule(n... 阅读全文
posted @ 2018-03-30 13:55 涂鸟少年 阅读(74) 评论(0) 推荐(0) 编辑
摘要: import java.util.Date; /** * Created by Administrator on 2018/3/30. */ public class Test { public static void main(String[] args) { System.out.println("强调自主练习"); new Date(); ... 阅读全文
posted @ 2018-03-30 11:15 涂鸟少年 阅读(88) 评论(0) 推荐(0) 编辑
摘要: using System; namespace helloworld{ class Hellworld{ public int key = 1; static void Main(String[] arg){ Console.WriteLine("大力出奇迹"); Console.WriteLine 阅读全文
posted @ 2018-03-30 10:47 涂鸟少年 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.串→日期 str_to_date() select str_to_date('2018-08-02','%Y-%m-%d %H:%i:%s') 2.日期→符串 date_format() select date_format(now(), '%Y%m%d%H%i%s') 2.当前十分秒日期 - 阅读全文
posted @ 2018-02-02 21:25 涂鸟少年 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 日期无非 字串和日期类型,以及时间戳(数字): 1.日期和字符串转换函数(to_date,to_char) select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual; //日期→字符串 + 2018-02-03 11:43:22 select 阅读全文
posted @ 2018-02-02 21:08 涂鸟少年 阅读(142) 评论(0) 推荐(0) 编辑