摘要:
今天下载壁纸时发现这样一个比较人性化的设置:那么这里是如何检测到“电脑的分辨率”的?下面是一个简单的解决方法,但是存在缺陷。<script language="javascript">var width = screen.width;var height = screen.height;if( width < 1280 || height < 1024){ alert("This web page is best viewed with a screen resolution of 1280 by 1024 or higher. Your 阅读全文
摘要:
1. 数组声明2. 数组初始化3. 数组取值1. 数组声明int[] table; // not int table[]; int[] numbers; // declare numbers as an int array of any size numbers = new int[10]; // numbers is a 10-element array numbers = new int[20]; // now it's a 20-element arraystring[,] names = new string[5,4];2. 数组初始化int[] numbers = new i 阅读全文