ITPub博客

首页 > 应用开发 > IT综合 > SAP Server Side JavaScript解决方案

SAP Server Side JavaScript解决方案

原创 IT综合 作者:i042416 时间:2020-03-14 08:56:02 0 删除 编辑

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

en.wikipedia.org/wiki/J

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传进来的数据直接输出。

测试:


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2680153/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1983865