diff --git a/temp.txt b/temp.txt new file mode 100644 index 0000000..2988f33 --- /dev/null +++ b/temp.txt @@ -0,0 +1,235 @@ +function getUrl() { + let url = window.location.pathname; + let index = url.indexOf("/", 1); + return (url.substring(0, index)); +} + +//第几页 +let indexPage +// 总共有多少页 +let pageTotal +//这页有多少条 +let sizePage +//总共有多少条 +let recordTotal + +function showTable(data) { + let pageCapacity = 0; + $(data.beanList).each(function () { + pageCapacity++; + let html = "
"; + if (pageCapacity % 2 != 0) { + html += "