一份可运行的求职说明(概念版)
图片版:
文字版:
1 function IWill(){}; 2 IWill.prototype.MyAgree=[ 3 "长期的合作", 4 "有能力和可靠的员工", 5 "善于学习,善于解决问题的员工", 6 "合理的薪酬和制度", 7 "理性,可建议可讨论的团队和环境" 8 ]; 9 IWill.prototype.MyAgainst=[ 10 "项目Over,庆功宴即散伙饭的一次性开发工具", 11 "无成本搞定一切的万能员工", 12 "只会说是和好的自动播放机" 13 ]; 14 IWill.prototype.Say=function(YouNeeds){ 15 if(YouNeeds.length==0){ 16 alert("Are you OK?"); 17 return; 18 } 19 var iLoop=0; 20 for(iLoop=0;iLoop<YouNeeds.length;iLoop++){ 21 if($.inArray(this.MyAgainst,YouNeeds[iLoop])<0){ 22 alert("...Bye,And forget me please."); 23 return; 24 } 25 } 26 var AgreeNum=0; 27 $.each(YouNeeds,function(idx,value){ 28 if($.inArray(this.MyAgree,value)<0){ 29 AgreeNum++; 30 } 31 }); 32 33 if(AgreeNum==0){ 34 alert("I'm sorry"); 35 }else{ 36 alert("Please contact me."); 37 } 38 }; 39 var YouNeeds=[ 40 /*****************************************/ 41 //please enter you needs 42 /****************************************/ 43 ]; 44 var iWill=new IWill(); 45 iWill.Say(YouNeeds);