function addValue(value1,value2){ if(value1=="")value1="0"; if(value2=="")value2="0"; var temp1=0; var temp2=0; if(value1.indexOf(".")!=-1) temp1=value1.length - value1.indexOf(".")-1; if(value2.indexOf(".")!=-1)
main.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
public int GetAgeByBrithday(Date birthday){ int age=-1; Date today=new Date(); int todayYear=today.getYear(); int todayMonth=today.getMonth()+1; int todayDay=today.getDate(); int birthdayYear=birthday.getYear(); int
I've heard tell of the existence of a legless bird in the real world. A constant flutter in the space above constitutes its whole life.Prostrated with toil and strain, it just takes repose in the wind. Throughout countless nights and days, only once
function parseDate(str){ if(str.match(/^\d{4}[\-\/\s+]\d{1,2}[\-\/\s+]\d{1,2}$/)){ return new Date(str.replace(/[\-\/\s+]/i,'/')); } else if(str.match(/^\d{8}$/)){ return new
// function to display its name private static void WhatsMyName() { StackFrame stackFrame = new StackFrame(); MethodBase methodBase = stackFrame.GetMethod(); Console.WriteLine(methodBase.Name); //
sqlserver中實現split分割字串函數常用的.IF OBJECT_ID (N'fn_split') IS NOT NULL DROP FUNCTION fn_splitgoCREATE function dbo.fn_split ( @inputstr varchar(8000), @seprator varchar(10),@p int --要取第幾個資料,從0開始,如果要返回分割後的數組列表清刪除--##部分即可) returns @temp