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
const mongoose = require('mongoose') | |
mongoose.connect( | |
'mongodb://localhost/test', | |
{ useMongoClient: true }, | |
err => { | |
const bookSchema = new mongoose.Schema({ | |
title: { type: String, required: true }, | |
}); |
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
JPE Java Professional Edition | |
J2EE Java 2 Platform Enterprise Edition | |
JEE Java Enterprise Edition | |
J2SE Java 2 Platform, Standard Edition | |
EJB Enterprise JavaBean | |
MDB Message-Driven Bean | |
JAR Java ARchive | |
WAR Web ARchive | |
EAR Enterprise ARchive | |
WS Web Service |
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
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="bootstrap.min.css" type="text/css" /> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$('.grade').focus(); | |
$('input').keypress(function(event) { | |
if (event.which == 13) { |