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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
setInterval(function(){ | |
var divUtc = $('#divUTC'); |
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
var express = require('express'); | |
var fs = require('fs'); | |
var pdf = require('html-pdf'); | |
var app = express(); | |
app.get('/',function(req, res){ | |
var html = fs.readFileSync('./test/test.html', 'utf8'); | |
var options = { format: 'Letter' }; | |
pdf.create(html, options).toFile('./test.pdf', function(err, resp) { |
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
var express = require("express"); | |
var app = express(); | |
var request = require('request'); | |
var options = { | |
//url:'https://jsonplaceholder.typicode.com/comments', | |
url:'http://date.jsontest.com/?service='+'ip', | |
method: 'get', | |
//path:'/comments', | |
headers: { |
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
//you have to install two dependency "npm install express" and "npm install faker" | |
var express = require('express'); | |
var faker = require('faker'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
//res.render('index.ejs'); | |
res.json({ |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<form method="post" enctype="multipart/form-data"><input type="text" name="a"> | |
<input id="file" type="file" name="photo" /> | |
<button type="submit">test</button> |