SAP Server Side JavaScript解決方案是怎樣的,相信很多沒有經(jīng)驗的人對此束手無策,為此本文總結了問題出現(xiàn)的原因和解決方法,通過這篇文章希望你能解決這個問題。
服務器端的JavaScript, 看下wikipedia的介紹:
https://avaScript#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
創(chuàng)建一個新的package:
創(chuàng)建一個新的Application:
創(chuàng)建一個新的文件test.xsjs, 內(nèi)容如下:
var userInput = $.request.parameters.get("userStuff"); $.response.contentType = "text/html"; $.response.setBody(userInput);
這個hello world應用是一個簡單的echo應用:將用戶通過url傳進來的數(shù)據(jù)直接輸出。
測試:
看完上述內(nèi)容,你們掌握SAP Server Side JavaScript解決方案是怎樣的的方法了嗎?如果還想學到更多技能或想了解更多相關內(nèi)容,歡迎關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司行業(yè)資訊頻道,感謝各位的閱讀!