[問題] jQuery 新增function的問題
我寫了一個檔案 配合著 progressbar 使用是沒問題的,
可是就是很想把它跟 jquery.ui.progressbar.js 放在一起
所以我就把它拉進去,如下圖...
(function($){
...
$.fn.ProgressBarValue=function(type,iValue)
{
...
$(function()
{
$( '#' + cDivId + "_progressbar" ).progressbar({value: iCountdown});
$( '#' + cDivId + '_CenterMask' ).html(iCountdown+'%');
});
...
})(jQuery)
下面是本來 jquery.ui.progressbar.js 的內容
發現 執行到
$( '#' + cDivId + "_progressbar" ).progressbar({value: iCountdown});
這一句 就掛了....
是哪裡要修改一下 呢? 請教一下>"<
還有一個白癡問題,
請問一下...
(function( $, undefined ) { }
(function($){ }
這兩種方法有什麼差別呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.250.3.216
→
12/02 11:21, , 1F
12/02 11:21, 1F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章