Closed zhusheping closed 4 years ago
Your AutobahnJS code is wrong, please read their documentation. A callee receives its arguments as two parameters, an array of positioned arguments and a dictionary of keyword arguments.
The corrected code should look like this:
function square(arguments) {
person = arguments[0];
return person.Age * person.Age;
}
To avoid these kind of errors, I strongly encourage you to use TypeScript with the AutobahnJS definitions I contributed to the DefinitelyTyped project.
Also please refrain from uploading code to OneDrive/Dropbox/Google Drive, as it makes my antivirus suspicious. Upload your code as a GitHub gist (minimal as possible) or as a GitHub repository (if you have too much code).
Like this:
the model:
I'm trying to do this.and i got a exception:"Error converting value {null} to type 'System.Int32'. Path ''.”". Zip. 1.Run project wampHost. 2.Open index.html under project wampCaller to register func. 3.Run project wampCaller to call it. 4.Exception throwed.