修改弹幕为异步请求
This commit is contained in:
1 parent
97a889be6c
commit
d1584c1332
5 files changed
+5
-5
No files matched your search
@@ -93,7 +93,7 @@
|
|||||||
var currentPath = "\/post\/demo01\/";
|
var currentPath = "\/post\/demo01\/";
|
||||||
|
|
||||||
|
|
||||||
$.ajaxSettings.async = false;
|
$.ajaxSettings.async = true;
|
||||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
var currentPath = "\/post\/demo03\/";
|
var currentPath = "\/post\/demo03\/";
|
||||||
|
|
||||||
|
|
||||||
$.ajaxSettings.async = false;
|
$.ajaxSettings.async = true;
|
||||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
var currentPath = "\/post\/my-first-post\/";
|
var currentPath = "\/post\/my-first-post\/";
|
||||||
|
|
||||||
|
|
||||||
$.ajaxSettings.async = false;
|
$.ajaxSettings.async = true;
|
||||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
var currentPath = "\/post\/my-second-post\/";
|
var currentPath = "\/post\/my-second-post\/";
|
||||||
|
|
||||||
|
|
||||||
$.ajaxSettings.async = false;
|
$.ajaxSettings.async = true;
|
||||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
var currentPath = "{{ .RelPermalink }}";
|
var currentPath = "{{ .RelPermalink }}";
|
||||||
|
|
||||||
// 动态获取评论并发布弹幕
|
// 动态获取评论并发布弹幕
|
||||||
$.ajaxSettings.async = false;
|
$.ajaxSettings.async = true;
|
||||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
Reference in new issue
Block a user