本帖最后由 云层 于 2012-5-31 09:44 编辑
最近在论坛上看到大量的关于EXTJS脚本录制开发的问题,虽然我没做过这个框架的项目,但是凭经验也知道这个不过是一个富客户端的事情,无非就是JSON丢来丢去而已,新手不明白背后的道理而已。(新书上没有具体的案例,不过AJAX和这个是类似的,自己领会精髓吧) 不过老是看到这类问题没人回答,也终于沉不住气了,那么就专门谈一下吧,其实真的没啥技术含量。由于这里的框架没有带数据上传,所以POST请求我并没有写,如果录制不出来,那么自己写个web_custom_request就行了,这里就不详述了,如果大家有在线例子我可以帮大家做一个案例。 一大早吃饭的时候更新了一个更完整的案例,免得你们说我又是不送佛送到西,喂饭不喂菜了。做实验的网站大家别捣乱,我只是无意搜索到的,得罪了。
- Action()
- {
- web_url("list-view.html",
- "URL=http://localhost:8000/ext-4.0.7-gpl/examples/grid/list-view.html",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t1.inf",
- "Mode=HTML",
- EXTRARES,
- "Url=/ext-4.0.7-gpl/resources/css/ext-all.css", ENDITEM,
- "Url=/ext-4.0.7-gpl/ext-all-debug.js", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/panel-header/panel-header-default-top-bg.gif", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/tools/tool-sprites.gif", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/grid/column-header-bg.gif", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/grid/grid3-hd-btn.gif", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/dd/drop-no.gif", ENDITEM,
- "Url=/ext-4.0.7-gpl/resources/themes/images/default/grid/column-header-over-bg.gif", ENDITEM,
- LAST);
- web_reg_save_param_ex(
- "ParamName=gname", "LB=name\":\"", "RB=\",\"size", "Ordinal=all", SEARCH_FILTERS, "Scope=BODY", LAST);
- web_url("get-images.php", "URL=http://localhost:8000/ext-4.0.7-gpl/examples/grid/get-images.php?_dc=1338389648625&page=1&start=0&limit=25",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=http://localhost:8000/ext-4.0.7-gpl/examples/grid/list-view.html",
- "Snapshot=t2.inf",
- "Mode=HTML",
- LAST);
- return 0;
- }
复制代码
完整文档老规矩
|