OK, I have solved the problem, it looks like this:
function run(arg){
console.log(arg);
}
I never wrote applescript and I know nothing about it. I read the document from this url, and I found that the run function. It solved my problem.
My English is very bad, I hope you can get it!