星空下的嗳 2016-08-18 03:41 采纳率: 12.5%
浏览 4846
已采纳

$.alert is not a function

提示这个是为什么呢?我先引入jQuery了,也先定义消息了,代码如下

 var message = 'To use voice/video functions, you need to run Agora Media Agent first.<ul><li> If you do not have it installed, please visit url <a style="font-weight:bold;" href="' + err.agentInstallUrl + '">AgoraWebAgent</a> to install it. Please refer to the <a style="font-weight:bold;" href="' + err.agentInstallGuideUrl + '">installation guide</a> if you encounter any questions.</li><li>If you have installed it, please double click the icon to run this app.</li><li>If it has been running, please check if the internet connection is working or not.</li></ul>';
$.alert(message);

执行到这就提示出错

  • 写回答

2条回答 默认 最新

  • 斯洛文尼亚旅游 2016-08-18 04:10
    关注

    jquery没有alert这个方法。。其他js代码扩展的要一起倒入js文件

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?