prototype.js开发笔记
https://compdoc2cn.dev.java.net/prototype/html/prototype.js.cn.html
lz可以去看看,好东西

解决方案 »

  1.   

    是的!
    Ajax.Updater.ScriptFragment = '(?:<script.*?>)((\n|.)*?)(?:<\/script>)';var match    = new RegExp(Ajax.Updater.ScriptFragment, 'img');
        var response = this.transport.responseText.replace(match, '');
        var scripts  = this.transport.responseText.match(match);但你再往下看
        if (this.options.evalScripts && scripts) {
          match = new RegExp(Ajax.Updater.ScriptFragment, 'im');
          setTimeout((function() {
            for (var i = 0; i < scripts.length; i++)
              eval(scripts[i].match(match)[1]);
          }).bind(this), 10);
        }
    就是说你指定一个参数evalScripts就可以让它执行脚本了
    new Ajax.Updater( container,url,{method:'get',evalScripts:true} );
      

  2.   

    谢谢,ice_berg16(寻梦的稻草人)!!!
      

  3.   

    ice_berg16(寻梦的稻草人),不小心把全部分给了dam520,不好意思,什么补给你?