Commit 109cc7e4 by doszhang

dos

parent fa334e34
...@@ -93,8 +93,16 @@ $(document).ready(function () { ...@@ -93,8 +93,16 @@ $(document).ready(function () {
$('.page1 .btn-next').on('click', showFlagPage); $('.page1 .btn-next').on('click', showFlagPage);
//换一换按钮点击 //换一换按钮点击
$('.flag-page .btn-change').on('click', randomFlag); $('.flag-page .btn-change').on('click', randomFlag);
//选择flag
$('.flag-page .flag-block').on('click', {
this: this
}, addFlag);
}); });
function addFlag(this) {
console.log(this);
}
function showFlagPage() { function showFlagPage() {
$('.page1').hide(); $('.page1').hide();
$('.flag-page').show(); $('.flag-page').show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment