Created
March 2, 2017 05:15
-
-
Save devjin0617/1558643a860ce32b1c506105e75d2466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
... | |
<button type="button" class="btn btn-primary" autocomplate="off" data-loading-text="jquery with bootstrap" @click="clickBtn"> | |
... | |
</template> | |
<script> | |
export default { | |
name: 'jQueryApp', | |
methods: { | |
clickBtn (event) { | |
$(event.target).button('loading') | |
setTimeout(function() { | |
$(event.target).button('reset') | |
}, 1000); | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment