函数当中输入内容时没有自动提示怎么回事儿呢?
来源:3-8 编程练习
jingo_
2019-07-04 12:08:16
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
div {
background-color: #D94A38;
width: 90px;
height: 20px;
padding: 40px;
}
</style>
</head>
<body>
<div onmousedown="mdown(this)" onmouseup="mUp(this)">Click Me</div>
<!-- <script>
function mDown(obj) {
obj.style.backgroundColor = "#1ec5e5";
obj.innerHTML = "Release Me"
}
function mUp(obj) {
obj.style.backgroundColor = "#D94A38";
obj.innerHTML = "Thank You"
}
</script>-->
<script>
function mdown(obj) {
obj.style.backgroundColor = "#1ec5e5";//输入这行代码没有自动提示怎么弄呢,
}
</script>
</body>
</html>
1回答
好帮手慕慕子
2019-07-04
同学你好, 老师测试你的这段代码。 不太清楚你说的没有自动提示是什么情况呢? 请问同学是在本地编辑器还是在在线编辑器编写的时候没有提示呢?具体是指什么提示呢, 建议: 可以详细的描述一下你的问题, 便于老师高效的为你解决问题
如果帮助到了你, 欢迎采纳!
祝学习愉快~~~~
相似问题