text-align:center 水平居中显示[html] view plaincopyprint?
分类:
其他好文 时间:
2015-02-24 23:17:44
阅读次数:
197
一 创建和使用脚本1 概述GameObject的行为都是被附加到其上面的组件控制,脚本本质上也是一个组件。在unity中创建一个脚本,默认内容例如以下:using UnityEngine;using System.Collections;public class MainPlayer : MonoB...
分类:
编程语言 时间:
2015-02-24 19:50:35
阅读次数:
252
private long firstTime = 0;public void onBackPressed() {//super.onBackPressed();if (System.currentTimeMillis()-firstTime>=2000) {Toast.makeText(this, ...
分类:
移动开发 时间:
2015-02-24 19:47:49
阅读次数:
173
输入输出:我们使用System.out.println(“abc”);作用:向控制台输入东西。Scanersc=newScanner(System.in);//从输入流中去读取intage=sc.nextInt();//等待接受用户输入的一个整型Stringname=sc.nextLine();//...
分类:
编程语言 时间:
2015-02-24 17:29:18
阅读次数:
218
线程处理使 C# 程序能够执行并发处理,以便您可以同时执行多个操作。例如,您可以使用线程处理来监视用户输入,执行后台任务,以及处理并发输入流。System.Threading命名空间提供支持多线程编程的类和接口,使您可以轻松地执行创建和启动新线程,同步多个线程,挂起线程以及中止线程等任务。若要在 C...
分类:
编程语言 时间:
2015-02-24 17:26:07
阅读次数:
184
XmlSerializer作用是将对象序列化到 XML 文档中和从 XML 文档中反序列化对象。XmlSerializer使您得以控制如何将对象编码到 XML 中。所在的命名空间:System.Xml.Serialization程序集:System.Xml(在 system.xml.dll 中)先看...
分类:
其他好文 时间:
2015-02-24 16:18:26
阅读次数:
150
//新建App_Code文件夹//新建studentDA文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using Syst...
分类:
数据库 时间:
2015-02-24 15:07:00
阅读次数:
310
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
Web程序 时间:
2015-02-24 15:04:53
阅读次数:
187
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys...
分类:
其他好文 时间:
2015-02-24 15:03:07
阅读次数:
102
上图是一个典型dmz网络拓扑pf1,需要在system->firewall/nat->networkaddresstranslation中,设置natreflectionmodeforportforwards模式为:PureNAT打开上述设置,可以让内网直接用域名访问架在dmz里的服务器。pf2,我是将连接dmz的端口设置为wan,接内网为lan,然后关闭..
分类:
其他好文 时间:
2015-02-24 13:57:58
阅读次数:
744