剃刀

2014-08-29 139 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

回答