两爪黑米;
两爪紫糯米;
"黑米粥"继续阅读
案例
通过按钮 Click 触发按钮 Wait,弹出信息 Amazing!。
<input type="button" value="Wait" id="WaitEle" onclick="javascript:alert('Amazing!');">
<input type="button" value="Click" id="ClickEle" onclick="Go();">
<script>
var WaitEle = document.getElementById("WaitEle");
var ClickEle = document.getElementById("ClickEle");
function Go() {
WaitEle.onclick();
}
</script>
"JavaScript 点击事件: 一个按钮触发另一个按钮"继续阅读
"JavaScript 闭包理解"继续阅读
早些时候写的,记录一下。
"HTML 友情链接代码"继续阅读
ECMAScript6可以用箭头"=>"定义函数。x => x * x或(x) => {return x * x;}与匿名函数function(x){return x * x;}相等。
"ECMAScript6 箭头函数 ArrowFunction: `=>`"继续阅读
"CSS 伪类选择器 active 模拟 JavaScript 点击事件"继续阅读
Coke and chips are delicious, and there's no reason to drink and smoke.