首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

web通信

2012-10-09 
web通讯1.????????????????????? ?客户端-----------服务器端?jsp,html,extjs,flex,jquery-----------java

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();
???? ?
???? ?
???? }

热点排行