2017-06-27 37 views
0

我在以下插件中遇到了JavaScript問題。當我嘗試重新加載頁面時出現以下錯誤:自定義插件中的Javascript問題

Uncaught TypeError: $ is not a function 
    at (index):1141 
(index):1161 Uncaught TypeError: $ is not a function 
    at HTMLDocument.<anonymous> ((index):1161) 
    at i (jquery.js:2) 
    at Object.fireWith [as resolveWith] (jquery.js:2) 
    at Function.ready (jquery.js:2) 
    at HTMLDocument.K (jquery.js:2) 

我正在添加代碼鏈接(它是一個插件)。那麼你們能幫我找到解決辦法嗎?

https://pastebin.com/KSPPX57j 

當我嘗試安裝此PHP代碼(自定義創建的插件)時,會發生此問題。我不知道jQuery的語法,因爲我是新手這個

回答

0

簡易修復將是簡單地替換$(jQuery(

+0

能否請您更換相同?因爲我也有一些與JavaScript中的變量$混淆。請發送Pastebin鏈接。它會幫助我..謝謝 –

+0

@DeepeshKumar類似這樣的:https://pastebin.com/AZ6R1EQp – Codemole

+0

好吧..修復問題..謝謝你的時間 –