-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translation_ajax #73
base: translate
Are you sure you want to change the base?
translation_ajax #73
Conversation
@@ -13,21 +13,21 @@ | |||
"id": "587d7fad367417b2b2512be1", | |||
"title": "Handle Click Events with JavaScript using the onclick property", | |||
"description": [ | |||
"You want your code to execute only once your page has finished loading. For that purpose, you can attach a JavaScript event to the document called <code>DOMContentLoaded</code>. Here's the code that does this:", | |||
"你希望代码仅在页面完成加载后执行。为此,你可将名为<code>DOMContentLoaded</code>的 JavaScript 事件附加到文档中。如例:", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如例???
"<blockquote>document.addEventListener('DOMContentLoaded',function() {<br><br>});</blockquote>", | ||
"You can implement event handlers that go inside of the <code>DOMContentLoaded</code> function. You can implement an <code>onclick</code> event handler which triggers when the user clicks on the element with id <code>getMessage</code>, by adding the following code:", | ||
"你可以执行在<code>DOMContentLoaded</code>函数内部的事件处理程序。添加<code>onclick</code>事件处理器,当用户点击 id 为<code>getMessage</code>的元素时会触发事件。添加以下代码:", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
语句不通
@@ -42,10 +42,10 @@ | |||
"contents": [ | |||
"<script>", | |||
" document.addEventListener('DOMContentLoaded',function(){", | |||
" // Add your code below this line", | |||
" // 在该行下添加代码", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在该行下添加代码 => 在这行下面添加代码
No description provided.