index.ejs
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<script src="/javascripts/jquery.min.js"></script>
<script>
function ajax(){
$.ajax({
url: "/ajax",
type: "GET",
dataType: "json",
data: {
id: 111,
title: 'aaa',
content: 'bbb'
},
contentType: "application/json",
cache: false,
timeout: 5000,
complete: function() {
//called when complete
console.log('process complete');
},
success: function(data) {