jsfiddle问题 [英] jsfiddle question

查看:92
本文介绍了jsfiddle问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让这个非常简单的jsfiddle工作。它只是在点击按钮时应该提醒测试。我在这里缺少什么?

I can't get this extremely simple jsfiddle to work. Its just supposed to alert test when button is clicked. What am I missing here?

http://jsfiddle.net/u9nG6/ 2 /

推荐答案

您必须将加载方法更改为无换行(head)。

You have to change the load method to no wrap (head).

它与如何加载JavaScript以及何时读取方法签名有关。 http://jsfiddle.net/u9nG6/11/

It has something to do with how the JavaScript gets loaded and when the method signature is read. http://jsfiddle.net/u9nG6/11/

这篇关于jsfiddle问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆