zoukankan      html  css  js  c++  java
  • extjs 3.store on beforeload手动添加options.params值

    环境是struts2

    业务中store加载的时候不一定都是把整个form提交过去,有时候也不用创建一个动态的form来提交表单。

    手动加入参数即可,在action里面有get set就可以获取了。

    代码示例:

    var conditionstr = document.getElementById("inputcondition").value;
         
        store.on('beforeload', function (store, options){
                    var params = {sthecstr:conditionstr};
        Ext.apply(options.params, params);
        });
     
     
    sthecstr就是action里面的属性名称,要有getSthecstr()和setSthecstr()函数即可
  • 相关阅读:
    内存可用性判断 IsBadCodePtr IsBadReadPtr 等等
    部署到Linux使用VS Code 开发.NET Core 应用程序
    Gulp.js简介
    net WebApi中使用swagger
    深入理解
    软件框架
    重拾linux
    Linux创建修改删除用户和组
    Linux 之 rsyslog
    Lua 解释器
  • 原文地址:https://www.cnblogs.com/soief/p/2383043.html
Copyright © 2011-2022 走看看