摘要:
把Int值格式化为right-align定长的字符串:int i = 40;string s = i.ToString().PadLeft(3,'0');//s="040" 阅读全文
摘要:
元素取值val()val()方法主要用来获取form元素的值像input select textarea。在对select取值的时候当没有option被选定时val()会返回null,至少一个option被选定时val()会返回一个包含所有selected的option。对于selects和chec... 阅读全文