摘要:
刚遇到一个bug, 2个input, 一隐藏一显示, 隐藏的input1的value, 在提交后, 总在 显示的input2中显示其值请在 2个input中加上 name属性,主要是和后台代码区别,这样就不会混乱了原因可能是,提交后的value, 又返回到前台,返回到刚才的位置,而input 从1到2了, 造成了错位。 阅读全文
摘要:
刚遇到一个bug, 2个input, 一隐藏一显示, 隐藏的input1的value, 在提交后, 总在 显示的input2中显示其值请在 2个input中加上 name属性,主要是和后台代码区别,这样就不会混乱了原因可能是,提交后的value, 又返回到前台,返回到刚才的位置,而input 从1到2了, 造成了错位。 阅读全文
摘要:
config filesWorkspace-->Servers-->Tomcat v6.0 Server at localhost-configcatalina.policycatalina.propertiescontext.xmlserver.xmltomcat-users.xmlweb.xml备份配置好的配置文件可以为后面 server配置使用,只要全部覆盖新server中的文件,记住 一定要刷新server列表,在eclipse中否则报错 阅读全文
摘要:
1. 只要是new过的对象 都有自己的一块内存,再new再申请一块内存,即有第二个地址2. 类的static变量,既可以 class.var = *** 或 obj.var =*** 都可以 K1Cat.sid = 100; c1.sid = 2000; 阅读全文
摘要:
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"//need to set the header at the very end because you cannot remove items once the header is set pivProfile.Header = GetHeaderTxtFromString("Profile"); static TextBlock GetHeaderTxtFromString( 阅读全文
摘要:
if (!localStorage.getItem("tweet" + tweet.id)){ localStorage.setItem("tweet" + tweet.id, JSON.stringify(tweet)); } var index = localStorage.getItem("index::" + keyword); if (index){ index = JSON.parse(index); } else { index = []; } 阅读全文
摘要:
C#: 一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。 二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点:1、不能实例化; 2、包含未实现的方法声明; 3、派生类必须实现未实现的方法,抽象类是抽象方法,接口则是所有成员(不仅是方法包括其他成员); 另外,接口有如下特性:接口除了可以包含方法之外,还可以包含属性、索引器、事件,而 阅读全文
摘要:
1. run simulator2. add site (eclipse or AVD manage) http(s)://dl-ssl.google.com/android/repository/repository.xml install available packages(* close eclipse) 阅读全文
摘要:
<script type= "text/javascript " language= "javascript "> <!-- function checkBrowser() { var ClientInfo= " "; ClientInfo = ClientInfo + "userAgent : "+window.navigator.userAgent+ " <br> "; ClientInfo = ClientInfo + "appName : &quo 阅读全文
摘要:
废话少说,直接入正题。如果要进行开发,先看是选择用JDK还是Eclipse,在这里下载JDK,在这里下载Eclipse;安装好上面其中一项后(我是用的JDK),下载Android SDK Starter:android-sdk_r05-windows.zip该SDK Starter可能更新,访问官网下载最新版本。解压所有文件到本地某个文件夹,如C:\Android。使里面的tools文件夹位于C:\Android\android-sdk-windows\tools;把tools文件夹添加为PATH环境变量,这样在CMD里启动tools下的程序就不用输入路径。右键单击我的电脑,选择属性;选择高级 阅读全文
摘要:
1. put the dir into right position.2. run MDS run.bat3. run 9500.bat 阅读全文
|