Created
February 2, 2013 04:58
-
-
Save Jintian/4696160 to your computer and use it in GitHub Desktop.
虚假订单记录生成 From http://www.tougumo.com/order/order.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SCRIPT language='JavaScript'> | |
var i=0; | |
function genOrder(){ | |
today=new Date(); | |
date=today.getDate(); | |
month= today.getMonth() + 1 ; | |
year= today.getFullYear(); | |
var odate = year + '-' + month + '-' + date; | |
document.write(odate); | |
var district =['北京','上海','天津','湖南','湖北','广东','广西','重庆','四川','山东','河南','河北','山西','贵州','黑龙江','福建','浙江','江苏','江西','海南','陕西','安徽']; | |
var name = ['张','刘','周','吴','朱','陈','田','钟','马','韩','顾','王','李','卢','崔','段','胡','潘','孙','林','代','苏']; | |
var sex = ['先生','小姐']; | |
var mobile ='(13'+parseInt(Math.random()*9+1) + '****' + parseInt(Math.random()*10000) +')'; | |
var product = ['任仲传强力透骨膜 买2送1(共3盒) 已发货!','任仲传强力透骨膜 买3送2(共5盒) 已发货!','任仲传强力透骨膜 买4送4(共8盒) 已发货!','任仲传强力透骨膜 买6送6(共12盒) 已发货!']; | |
var user = ' ' + district[parseInt(Math.random()*22)]+ '的' + name[parseInt(Math.random()*22)] + sex[parseInt(Math.random()*2)] + mobile + '<br />' + product[parseInt(Math.random()*product.length)] + '<font color="#FF0000">√</font><br><br>'; | |
document.write(user); | |
} | |
for(i=0;i<22;i++){ | |
genOrder(); | |
} | |
</SCRIPT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment