我有一個按鈕,如下所示:<button id="onlineusers" style="display: none;">Call User</button>我需要根據(jù)事件顯示按鈕,如下所示:client.on('stream-added', function (evt) { alert("User is online"); var stream = evt.stream; $('#onlineusers').show(); console.log("New stream added: " + stream.getId()); console.log("Subscribe ", stream); client.subscribe(stream, function (err) { console.log("Subscribe stream failed", err); });});我正在使用jQuery(2.0.1),并且嘗試了以下操作:$('#onlineusers').show();我收到以下錯誤消息:TypeError:$(...)。show不是一個函數(shù)TypeError:$(...)show不是一個函數(shù)我是javascript新手。正在請求幫助?。?!
jQuery TypeError-show不是一個函數(shù)
牧羊人nacy
2021-04-09 14:15:57