我向包含数组的客户端发送信息,我只显示数组的3个元素,因为我想要有分页效果。我想在js文件中编写分页代码。
在file.js中
$(function(){
$(".pageLinks a").on("click", function(e){
e.preventDefault();
var pageNum = $(this).attr("id")
var test = JSON.stringify(populated) // I wanted populated to be the array
我正在尝试使用vuetify分页组件和nuxt.js构建分页,但它不能与服务器端呈现一起工作。 我使用https://github.com/vuetifyjs/vuetify/issues/4855中的代码添加了nuxt.js链接。它在客户端工作,但在服务器端返回错误"render function or template not defined in component: anonymous“ 有谁知道如何建立正确的SSR分页或如何修复我的解决方案?