<script>alert(123)</script>


Decrease font size : "Command -"
//缩小字体

Increase Font Size : "Command ="
//放大字体
 
Delete Line  : " Command D"
//删除整行 
Cut to line end : "Command K"
//从光标位置剪切到最后

Start new line : "Command Enter"
// 创建新的一行

Start new line before current : "Shift Command Enter"
//当前行前新建一行

Add selection for next occurrence : "Shift Command D"
//选取下一个相同词

Reformat code : "Alt Q"
//格式化代码

Move statement down : "Command ⬇️"
//当前行和下一行交换

Move statement up : "Command ⬆️"
//当前行和上一行交换

appearance:

Global variable : bold,italic, (foreground : #FF1F17);
Global function : (foreground : #0000FF);
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您可以尝试在页面中添加一个用于显示登录状态的元素,例如一个 div 标签,然后在登录成功或失败时动态修改该元素的内容。修改后的代码如下所示: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>登录</title> <link rel="stylesheet" href="1.css"> <script src="1.js"></script> </head> <body> <div class="login-container"> <h1>登录</h1> <form> <div class="form-group"> <label for="username">用户名</label> <input type="text" id="username" name="username"> </div> <div class="form-group"> <label for="password">密码</label> <input type="password" id="password" name="password"> </div> <button type="submit">登录</button> </form> <div id="login-status"></div> <!-- 新增用于显示登录状态的元素 --> </div> <script> const form = document.querySelector('form'); const usernameInput = document.querySelector('#username'); const passwordInput = document.querySelector('#password'); const loginStatusDiv = document.querySelector('#login-status'); // 获取用于显示登录状态的元素 form.addEventListener('submit', e => { e.preventDefault(); const username = usernameInput.value; const password = passwordInput.value; if (username == '姜文俊' && password == '123') { loginStatusDiv.textContent = '登录成功!'; // 修改用于显示登录状态的元素的内容 window.location.href = '网页设计.html'; } else { loginStatusDiv.textContent = '用户名或密码错误!'; // 修改用于显示登录状态的元素的内容 } }); </script> </body> </html> 在用户输入正确的用户名和密码后,页面将显示 "登录成功!" 的提示信息,并自动跳转到名为 "网页设计.html" 的页面;在用户输入错误的用户名或密码时,页面将显示 "用户名或密码错误!" 的提示信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值