SAP Server Side JavaScript解决方案是怎样的

2023-05-24,,

SAP Server Side JavaScript解决方案是怎样的,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

服务器端的JavaScript, 看下wikipedia的介绍:

https://avaScript#Server-side_JavaScript

Server-side JavaScript

> In December 1995, soon after releasing JavaScript for browsers, Netscape introduced an implementation of the language for server-side scripting with Netscape Enterprise Server.

Since 1996, the IIS web-server has supported Microsoft's implementation of server-side Javascript -- JScript -- in ASP and .NET pages.
Since the mid-2000s, additional server-side JavaScript implementations have been introduced, such as Node.js in 2009.

再看SAP的Server Side(服务器端) JavaScript解决方案:SAP Extended Application Service

创建一个新的package:

创建一个新的Application:

创建一个新的文件test.xsjs, 内容如下:

var userInput = $.request.parameters.get("userStuff"); $.response.contentType = "text/html"; $.response.setBody(userInput);

这个hello world应用是一个简单的echo应用:将用户通过url传进来的数据直接输出。

测试:

看完上述内容,你们掌握SAP Server Side JavaScript解决方案是怎样的的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注本站行业资讯频道,感谢各位的阅读!

《SAP Server Side JavaScript解决方案是怎样的.doc》

下载本文的Word格式文档,以方便收藏与打印。