json文件在dll里面了吗?如过在的话 ,怎么能不显示呢?如过是外在引用的话 ,可以只用里面的一个方法。

解决方案 »

  1.   

    使用时出了问题,将Json.js里的代码片断显示出来了,
    显示出来了?代码本身一打开就显示的?
      

  2.   

    找到toJSONString()这个方法,然后单独保存一个文件,需要的时候调用它,就不用别的js文件了。
      

  3.   

    关键是我有个DLL(AjaxPro)里用到toJSONString()方法。如果变成个方法(如toJSONString(“aaa”)),则DLL里的js代码就不会执行了,所以很难办啊。对了我用的另一个出问题的库是Jquery.js
      

  4.   

    如果变成个方法(如toJSONString(“aaa”)),则DLL里的js代码就不会执行了,所以很难办啊
    为什么不能执行?其他的JS是跟这个相关的??
      

  5.   

    因为DLL里的js已经写死为object.toJSONString()的形式,直接转为json字串。
    这就是用Jquery一个插件生成的一个DIV
    <DIV class="ui-tabs-panel ui-tabs-hide" id=hzjie01 style="min-width: 0px; function (w) {
            var a = [],     // The array holding the partial texts.
                k,          // The current key.
                i,          // The loop counter.
                v;          // The current value.
    // If a whitelist (array of keys) is provided, use it assemble the components
    此处省略若干字
    " jQuery1205463789682="10"></DIV>
      

  6.   

    <DIV class="ui-tabs-panel ui-tabs-hide" id=hzjie01 style="min-width: 0px; function (w) { 
    这里写法不对吧 
    这个是dll自动生成的吗
      

  7.   

     $(o.panelTemplate).attr('id', id)就是这句出错
    attr()是jquery的方法,给o.panelTemplate加属性的,o.panelTemplate本来是<DIV></DIV>,id是hzjie01 ,但是加玩id以后outerHTML就变成7楼那个样子
      

  8.   

    因为DLL里的js已经写死为object.toJSONString()的形式,直接转为json字串。 
    这就是用Jquery一个插件生成的一个DIV 
    <DIV class="ui-tabs-panel ui-tabs-hide" id=hzjie01 style="min-width: 0px; function (w) { 
            var a = [],     // The array holding the partial texts. 
                k,          // The current key. 
                i,          // The loop counter. 
                v;          // The current value. 
    // If a whitelist (array of keys) is provided, use it assemble the components 
    此处省略若干字 
    " jQuery1205463789682="10"> </DIV> 
      

  9.   

    Javascript 冲突的问题我也碰到过多次。后来就尝试使用Flash制作前台,效果还不错,建议试下。
      

  10.   

    attr属性 在1.2.6好像才支持attr("",fn)如果你[$(o.panelTemplate).attr('id', id)]  第二个参数 id 是个函数返回值,建议你换jQuery 1.2.6