<button onclick="myFunction()">点击这里</button>
2016-02-29
p1.className="one";
p2.className="two";
p2.className="two";
2016-02-29
最新回答 / 慕设计0012841
#include <stdio.h>/* 考虑一下哪个输出该用无参函数哪个输出该用有参函数呢? */int one(){ printf("%s\n","小明在慕课网上学习"); return 0;}int sum(int i){ int n; for(n=1;n<i;n++) { printf("小明在慕课网上已经参与学习了%d门课程\n",n); } return 0;}int main(){ one(); ...
2016-02-29
已采纳回答 / singi_2016
示例:document.write("<p style='color:blue;'>变蓝色</p>");说明:直接在write()方法里面写包含css样式的html代码就可以实现了。
2016-02-29
<script type="text/javascript">
document.write("hello");
document.getElementById("p1").style.color="blue";
<script>
document.write("hello");
document.getElementById("p1").style.color="blue";
<script>
2016-02-29
function openWindow(){
var open=confirm("确定打开?");
if(open==true){
open=prompt("请输入你的网址","http://www.imooc.com/");
if(open="http://www.imooc.com/"){
window.open('http://imooc.com/','width=400px,height=500,menubar=no,toolbar=no');
}}}
var open=confirm("确定打开?");
if(open==true){
open=prompt("请输入你的网址","http://www.imooc.com/");
if(open="http://www.imooc.com/"){
window.open('http://imooc.com/','width=400px,height=500,menubar=no,toolbar=no');
}}}
已采纳回答 / wakerS
楼上的不错我补充下var a = 1,//整型b = 1.1,//浮点c = 0364//8进制d = 0x34//16进制e = 1e+2//指数f = "xxx"//字符串d = [1,2,3]//数组
2016-02-29