本文介绍了为什么需要worklight适配器而不是直接ajax?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是好奇,为什么我们需要worklight适配器与数据库进行通信?为什么不能直接使用ajax?上次我使用直接ajax它根本不工作。在我切换到worklight适配器后,它的运行就像魅力一样?没问题。为什么?

I just curious, why we need worklight adapter to communicate with the database? Why not can't using direct ajax? Last time I'm using direct ajax it's not working at all. After I switch to worklight adapter it's running like charm? No problem at all. Why?

推荐答案

您没有提供有关您的方案的任何具体细节,例如后端系统位于何处,如果有的话涉及到安全性,拓扑结构等等......所以为什么它不能与AJAX一起工作是不可能回答的。

You did not provide any specific details about your scenario, like Where is that backend system located, if there is any security involved, what is the topology, etc... so why it's not working with AJAX is impossible to answer.

至于为什么要使用Worklight适配器,请阅读:

As for why use Worklight adapters, read:


适配器为各种后端系统提供模板化(适配器类型)连接设置 - HTTP,SOAP,SQL,JMS等

Adapters provide templated (adapter types) connectivity settings to various backend systems - HTTP, SOAP, SQL, JMS and so on

这篇关于为什么需要worklight适配器而不是直接ajax?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 01:11