javascript教育工具 [英] javascript educational tool

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

问题描述

我是家里的老屁,想要学习/玩javascript。有没有一个地方我可以运行javascript代码以及我在我的javascript书中读到的内容?



非常感谢

解决方案

Plunker [ ^ ]是我现在最喜欢的。


简单

打开你的记事本

写下您的HTML和Javascript代码并保存为yourfilename.html

在浏览器中打开它并使用您的javascript程序



例如我为你创建了一个简单的警告信息



 <   html  >  
< Head >
< 标题 >
我的Javascript
< / Title >
< script >
function myJavascriptFunction( ){
alert( 你好!欢迎使用我的Javascript示例!);
}
< / script >
< / Head >
< body >
< h2 > 使用HTML和JAVASCRIPT的简单警报消息。< / h2 >
< 按钮 onclick = myJavascript函数() > 点击我< /按钮 >
< / body >
< / html >





复制上面的代码并将其粘贴到记事本中,另存为Html并在webbrowser中打开程序。


你好,



您可以在任何文本编辑器(例如记事本)中尝试您的代码。

只需确保将文件另存为html。

要执行,您可以打开并查看IE浏览器中的输出。



此外还有在线编辑,你也可以在那里试试。



h ttp://www.compileonline.com/try_javascript_online.php [ ^ ]

Hi, I am an old fart at home that wants to learn/play with javascript. Is there a place where I can run javascript code to go along with what Im reading in my javascript book?

Thanks so much

解决方案

Plunker[^] is my favorite nowadays.


Its Simple
Open Your Notepad
Write your HTML and Javascript Code and save as "yourfilename.html"
Open it in you browser and play with your javascript program

for example i have create a simple alert message for you

<html>
<Head>
<Title>
My Javascript
</Title>
<script>
function myJavascriptFunction() {
    alert("Hello! Welcome to my Javascript Sample!");
}
</script>
</Head>
<body>
<h2>Simple Alert Message using HTML AND JAVASCRIPT.</h2>
<button onclick="myJavascriptFunction()">Click Me</button>
</body>
</html>



Copy the above code and paste it in your notepad , save as Html and open the program in your webbrowser.


Hello,

You can try your code in a any text editor ( say notepad).
Just make sure to save the file as html.
To execute you can open and see the output in a browser like IE.

Additionally there are online editors , you can try there also .

http://www.compileonline.com/try_javascript_online.php[^]


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

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