当前位置: 代码迷 >> Web前端 >> web通信
  详细解决方案

web通信

热度:368   发布时间:2012-10-09 10:21:45.0
web通讯

1.????????????????????? ?客户端-----------服务器端
?jsp,html,extjs,flex,jquery-----------java,.net
?jsp,html传递参数是通过username=**&password=***进行给服务器端交互,服务器端当得到了使用java进行后台处理,然后从新的设置新的jsp页面编译成html返回个前台
?extjs,flex,jquery等就要使用局部更新技术(ajax)使用字符串,json,xml进行后台的交互
?没有都是好事,这就要求在服务器端和客户端进行对json和xml的特殊的处理了。
?2.??? function xx() {
???? ?var win = Ext.create('Ext.window.Window', {
???? ???? title: 'Hello',
???? ???? height: 200,
???? ???? width: 400,
???? ???? layout: 'fit',
???? ???? items: {? // Let's put an empty grid in just to illustrate fit layout
???? ???????? xtype: 'grid',
???? ???????? border: false,
???? ???????? columns: [{header: 'World'}],???????????????? // One header just for show. There's no data,
???? ???????? store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
???? ???? }
???? ?});
???? ?win.show();
???? ?
???? }
????
3.???? function test() {
???? ?var obj = {
???? ??x1: 1,
???? ??x2: 'aaa',
???? ??foo: function () {
???? ???alert('hahah');
???? ??}
???? ?}
???? ?
???? ?obj.x1;
???? ?obj["x1"];
???? ?obj.foo();
???? ?obj["foo"].call();
???? ?
???? ?
???? }

  相关解决方案