【问题标题】:i have a problem in HTML & JavaScript when press button won,t open .. Thanks [closed]当按下按钮无法打开时,我在 HTML 和 JavaScript 中遇到问题。谢谢 [关闭]
【发布时间】:2022-11-27 16:27:03
【问题描述】:

https://jsbin.com/haluhifuqe/edit?html,js,output 当按下按钮无法打开时,我在 HTML 和 JavaScript 中遇到问题.. help

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>

  <p id="paragraphText">This is awesome </p>

  <button oneclick="changeTheText()">Change The text</button>

  
  </body>
</html>

【问题讨论】:

  • 这不是oneclick它的onclick

标签: javascript html css


【解决方案1】:
<button onclick="changeTheText()">Change The text</button>

它的onclick不是oneclick

【讨论】:

  • :)) 谢谢 :))
猜你喜欢
  • 2017-04-05
  • 1970-01-01
  • 2014-03-06
  • 2022-12-04
  • 1970-01-01
  • 2020-08-10
  • 2020-04-29
  • 1970-01-01
  • 2019-08-23
相关资源
最近更新 更多