unexpected end of input
unexpected end of input
        关于这个jquery这个错误的说法,网上有很多,但是都不是很明确
        自己测试了很久
操作方法
- 01首先看源代码 
- 02点击click 报错:Uncaught SyntaxError: Unexpected end of input 
- 03这是由于,这里写错了,少写了参数 
- 04改成如下:正确输出结果 <a class="button" href="javascript:void(0)">click</a> <script> $(function(){ $('.button').click(function(event) { console.log('ok'); }); }); 
- 05如果不添加参数,报错的类型就不一样了 注意排查; 
 赞 (0)
                        
