剃刀

2014-08-29 144 views
0

My problem's image剃刀

例如内生成特殊的JavaScript函数:我有di.ID = 3ee93ac8,我想创造出具有名称fnc_3ee93ac8 js函数()。所以我使用[email protected]()但语法错误。有人可以帮忙,非常感谢。

我的代码

<script type="text/javascript"> 
$("#[email protected]").on('click', function() { 

}); 
function [email protected](){ 
    $.Dialog({ 
     overlay: true, 
     shadow: true, 
     flat: true, 
     width: 500, 
     title: 'Download', 
     content: '<div id="[email protected]"><img class="centre" src="Resources/images/loading.gif" /></div>', 
     onShow: function (_dialog) { 
      $("#[email protected]").load('ajGetData/[email protected]'); 
     } 
    });   
}</script> 
+0

什么是 '二' 在此ID在那里你的模型是不是??? – 2014-08-29 10:26:24

+0

我有'di',不管那个变量,我宣布它。 '$(“#[email protected]”)'抽取运行。 di.ID是一个属性,我认为我不能使用“()”后,但我不知道如何修复 – 2014-08-29 10:30:51

回答