1

There's a period of time that I changed my web programming method. I develop my functions as web methods in some Web Services, then I call them in my website's UI using javascript. My question is why do we use web services? I think it's better to write these functions in the code behind of original page and call them with javascript. Isn't it better?

4

2 回答 2

1

如果我理解您的问题:如果您有一些功能被不同的页面使用,那么将它们放在单独的资源中会更有效。该资源仅下载一次,您的页面更轻。

于 2013-07-07T07:56:28.593 回答
1

任何平台都可以调用webservices,但是web表单后面的代码不能。

于 2017-09-01T18:32:49.217 回答