1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script type='text/javascript'>
listStart= new Array()
function initAutoComplete (arg1,arg2,arg3)
{alert(arg1+arg2+arg3)}
function noargs(){alert('pas de paramètre')}
function addToStart(fnc){
listStart[listStart.length]=fnc
}
addToStart('initAutoComplete(1,2,3)')
addToStart('initAutoComplete(5,7,3)')
addToStart("initAutoComplete('mon père',' ma mère',' mes frères et mes soeurs')")
addToStart("noargs()")
for (i=0;i<listStart.length;i++){if(listStart[i] instanceof Function) {}
else {if(listStart[i].split('\(')[1].length==1){alert(listStart[i] + ' pas de paramètres')}}
}
</script> |