摘要:
//type为1则转换成yyyymmdd格式,type为2则转换成yyyymm格式function formatTime(time,type){ var temp_time=new Number(time); var temp_date=new Date(temp_time); var temp_year1=""; var temp_month1=""; var temp_day1=""; if(type==1){ temp_year1=temp_date.getFullYear(); temp_month1=(temp_date.. 阅读全文
摘要:
function $(id) { if (id != null || id != "") { return document.getElementById(ClientIDPrefix + id); }}function Get() { if ($("txt").value == "") { $("lbl").value = ""; return; } var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest() 阅读全文
摘要:
内容绝大部分来自互联网,出处请百度。全角半角皆适用 1 Public Function bSubstring(ByVal s As String, ByVal length As Integer) As String 2 Dim bytes As Byte() = Text.Encoding.Unicode.GetBytes(s) 3 4 5 Dim n As Integer = 0 6 7 Dim i As Integer = 0 8 9 While i 0 Then15 ... 阅读全文