首页 > 解决方案 > 为什么我的脚本在移动、yajra 数据表列中不起作用?(刀片,移动)

问题描述

我的脚本在移动设备上不起作用。但控制台正在工作。我在数据表列中有一个刀片视图。但是这个刀片有一个 js 代码,并且这个代码在移动设备上不起作用(在浏览器上)。我该如何解决?

console.log("working") // this is working on mobile devices
$('#deleteuser'+"{{$userId}}").show(); // this is not working in mobile 
// $('#adduser'+"{{$userId}}").hide(); // this is not working in mobile 
document.getElementById("adduser"+"{{$userId}}").style.display = 'none';
// this is not working in mobile devices on browser

标签: javascriptmobiledatatablelaravel-bladeyajra-datatable

解决方案


推荐阅读