Created
May 16, 2017 01:45
-
-
Save uutarou10/ec67588aa3fb94d80ddd64245bae51b2 to your computer and use it in GitHub Desktop.
This file contains 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
$(() => { | |
$('#comment-area button').click(() => { | |
$.post('api/comment', {comment: $('#comment').val()}) | |
.done(() => { | |
console.log('success!') | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment