c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var cl = c.length; var r_num = ""; for(var i=0; i<l; i++){ r_num += c[Math.floor(Math.random()*cl)]; } // 日付時刻 var time_date= new Date(); var year = time_date.getFullYear(); var month = time_date.getMonth()+1; var date = time_date.getDate(); var hour = time_date.getHours(); var minute = time_date.getMinutes(); var second = time_date.getSeconds(); // ID var exp_id = year +'_'+ month +'_'+ date +'_'+ hour +'_'+ minute +'_'+ second +'_' + r_num;