很久之前我的编程从这里开始的,那时候对很多章节都计较懵懂,,,经历了这么长时间不懈的努力,有一览纵山小的感觉,哈哈。坚持就是胜利,加油
2020-09-13
最新回答 / qq_白夜行_07
//页面完全加载后运行var e = document.createEvent("MouseEvents");e.initEvent("click", true, true);document.getElementById("aotoruncheck").dispatchEvent(e);
2020-09-13
恭喜你看到这里,下面教你使用游猴脚本自动勾选“自动运行”
先下好tampermonkey,再新建一个脚本输入:
```
// ==UserScript==
(function() {
'use strict';
// Your code here...
var boxes = document.getElementById("aotoruncheck");
boxes.checked=true;
})();
```
↓这部分改成
// @match *://*.imooc.com/code/*
其余的描述可以随便改
先下好tampermonkey,再新建一个脚本输入:
```
// ==UserScript==
(function() {
'use strict';
// Your code here...
var boxes = document.getElementById("aotoruncheck");
boxes.checked=true;
})();
```
↓这部分改成
// @match *://*.imooc.com/code/*
其余的描述可以随便改
2020-09-13
已采纳回答 / qq_慕斯卡2179048
function quit(){ var a=confirm("是否取消设置"); if(a==true) { document.getElementById("con").removeAttribute("style"); document.getElementById("txt").removeAttribute("style"); }}
2020-09-05
已采纳回答 / 七月_Miss
代码本身有问题,第一个else后面应该有两个括号,第二个else后面应该只有两个括号 function openWindow() {var open = confirm ('open new window!'); if (open==true) {var url = prompt('open this web', 'www.google.ca'); if (url!=null) {window.open(url,"_blank"...
2020-09-05
最赞回答 / weixin_慕先生4035002
function color(){ var color = document.getElementById('txt'); color.style.color='red' //任何你想要的颜色}//另外题目的button要加一个onclick
2020-09-04