Skip to content

Instantly share code, notes, and snippets.

var secret = '';
var dbId = '';
function getPost() {
var post = {};
post.url = location.href;
post.author = document.getElementById('js_name').innerText;
post.title = document.getElementById('activity-name').innerText;
post.contentNodes = document.getElementById('js_content').childNodes;
return post;
}
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>神奇的margin</title>
</head>
<body>
<style>
body{