javascript - 为什么我的脚本在移动、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
解决方案
推荐阅读
- javascript - angular.translate 与 $scope.$emit
- c# - Nexmo SMS api 发送没有正文的文本
- typescript - 如何在不打开界面的情况下设置索引签名
- powershell - 使用 powershell 安装 .exe 时使用日志文件
- python - 与另一列中的公共值连接的列和行
- batch-file - 如何获取上次使用批处理脚本创建的文件时间
- javascript - 如何分离 Node 和 pg-promise 的控制器和数据库查询
- android - 如何在不创建新应用的情况下从生产中取消发布应用并在 Google Play 中重新发布测试版?
- symfony - Symfony - 无法识别树枝中的 js 脚本
- python-3.x - 为什么我尝试在 selenium python 中循环遍历 href 时出错?