|
@@ -6,9 +6,26 @@
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
<title>Document</title>
|
|
|
+ <meta name="description" content="pjax">
|
|
|
</head>
|
|
|
<body>
|
|
|
-
|
|
|
+<div>
|
|
|
+ <a href="demo1.html">index</a>
|
|
|
+</div>
|
|
|
+<div class="the-header">the-header1</div>
|
|
|
+<div class="the-content">the-content1</div>
|
|
|
+<div class="the-sidebar">the-sidebar1</div>
|
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/pjax/0.2.8/pjax.min.js"></script>
|
|
|
+<script>
|
|
|
+ const pjax = new Pjax({
|
|
|
+ selectors: [
|
|
|
+ "title",
|
|
|
+ "meta[name=description]",
|
|
|
+ ".the-header",
|
|
|
+ ".the-content",
|
|
|
+ ".the-sidebar",
|
|
|
+ ]
|
|
|
+ })
|
|
|
+</script>
|
|
|
</body>
|
|
|
</html>
|