同时更改两个div中的布局 [英] change layout in two div at the same time

查看:65
本文介绍了同时更改两个div中的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AJAX

I am using AJAX

展开 | 选择 | Wrap | 行号

推荐答案

我想你要添加不同的数据到不同的div。如果是这种情况,请在服务器端标记数据。当作为responseText接收时,将其拆分为客户端所需的部分。然后将它们添加到不同的div中。

或者使用responseXML,并在客户端解析XML。
I think you want to add different data to the different divs. If that''s the case, tokenize the data at the server end. Split it into required parts at client side when received as responseText. Then add them in different divs.
Or Use responseXML, and parse the XML at client side.


是的,你是对的。

但是我不知道如何在服务器端标记和分割数据?


谢谢和问候,

Vikas
Yes you are right.
But I don''t know how to tokenize and split the data at the server end?

Thanks and regards,
Vikas


不,您在服务器端使用唯一分隔符并在客户端分割,例如字符串test || test2可以使用javascript 分割:
No, you use a unique delimiter on the server-side and split on the client-side, e.g. the string "test||test2" can be split using javascript:
展开 | 选择 | Wrap | 行号


这篇关于同时更改两个div中的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆