layui radio 根据获取的到值选中

<input type="radio" name="lwkg" value="1" title="开" lay-filter="lwkg">
<input type="radio" name="lwkg" value="0" title="关" lay-filter="lwkg">

 

layui.use(['form', 'layedit', 'laydate'], function () {
var $ = layui.jquery, form = layui.form;

$.ajax({
type: "POST",
url: "../Method/GetParamter.ashx?rnd=" + Math.random(),
dataType: "text",
success: function (data) {
var s = eval(data);
if (s.length > 0) {
var o = s[0];

var lwjs_PD = o.lwjs_PD;
$("input[name=lwkg][value=1]").attr("checked", lwjs_PD == 1 ? true : false);
$("input[name=lwkg][value=0]").attr("checked", lwjs_PD == 0 ? true : false);

 

form.render(); //更新全部


}
}
});


});

转载于:https://www.cnblogs.com/oralig/p/10214434.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/278522.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

设置Mac自动显示和隐藏 Dock 栏的速度

Dock 显示和隐藏&#xff0c;系统默认设置成了1秒 通过终端.APP修改显示和隐藏的时间 &#xff08;单位&#xff1a;秒&#xff09; 默认的&#xff1a;defaults write com.apple.dock autohide-delay -int 1 优化的&#xff1a;defaults write com.apple.dock autohide-del…

powerpoint预览_如何放大和缩小PowerPoint演示文稿的一部分

powerpoint预览Microsoft PowerPoint lets you zoom in and out on a specific part of your PowerPoint slideshow, which can be handy both while editing and for drawing attention to important objects or ideas during the presentation. Here’s how to do it. Micros…

GitGitHub语法大全

目录 1. GitHub与Git万用语法1&#xff09;创建库2&#xff09;添加和提交到仓库3&#xff09;版本回退4&#xff09;缓存区和暂存区5&#xff09;撤销和删除文件6)远程仓库7)创建和合并分支2. 更多Git语法1. GitHub与Git万用语法 1&#xff09;创建库 git init 2&#xff09;添…

从Firefox控制您喜欢的音乐播放器

Do you love listening to music while you browse? Now you can access and control your favorite music player directly from Firefox with the FoxyTunes extension. 您喜欢在浏览时听音乐吗&#xff1f; 现在&#xff0c;您可以直接使用FoxyTunes扩展程序从Firefox访问和…

富文本编辑器初探

长期以来&#xff0c;作为用户我是富文本编辑器的使用者&#xff0c;作为前端开发&#xff0c;我也只是富文本插件的使用者&#xff0c;对内部实现细节不甚了解&#xff0c;使用上也只停留在调用插件提供的API&#xff0c;实现一些业务逻辑。最近的项目&#xff0c;需要开发一个…

特殊的求和(函数和循环)

【问题描述】 编写函数int fun(int a,int n)求Sn a aa aaa … aa…a 的值&#xff08;最后一个数中 a 的个数为 n &#xff09;&#xff0c;其中 a 是一个1~9的数字&#xff0c;例如&#xff1a;2 22 222 2222 22222 &#xff08;此时 a2 n5 &#xff09; 。参数由主函…

ms project 入门_Microsoft Project 2010入门

ms project 入门Would you like to keep your projects on track and keep track of how time and resources are used? Let’s take a look at Microsoft Project 2010 and how it can help you stay on top of your projects. 您想保持项目进度并了解如何使用时间和资源吗&…

mysql基本的增删改查和条件语句

增 insert into 表名&#xff08;列名,列名。。。。。。&#xff09; values("test1",23),("test2",23),("test3",24); 这条命令可以一次增加一条数据&#xff0c;也可以同时增加多条数据 还可以从插入其他的表到数据到当前表 insert into 插入的…

后端model传入前端JSP页面中的值判断后再取值

所遇到的问题后端model传入前端JSP页面中的值通过foreach循环内要满足条件才能取值给Div中&#xff0c;我们知道jsp页面中可以直接用EL表达式取值&#xff0c;格式就是${"model中传来的数据"},但是我要把传过来的数据判断后再取值就遇到了问题&#xff0c;通过查百度…

黑莓os软件下载_在PC上试用BlackBerry OS

黑莓os软件下载There’s a wider selection of smart phones and mobile OS’s than ever before, but you can’t just go buy every phone available and try them all out. Here’s how you can test out the latest version of the BlackBerry OS for free on your PC. 智…

IO流之转换流

一 转换流 1 OutputStreamWriter类 是字符流通向字节流的桥梁&#xff1a; 可使用指定的字符编码表&#xff0c;将要写入流中的字符编码成字节。它的作用的就是&#xff0c;将字符串按照指定的编码表转成字节&#xff0c;在使用字节流将这些字节写出去。 public static void m…

Spring事务管理(三)-PlatformmTransactionManager解析和事务传播方式原理

2019独角兽企业重金招聘Python工程师标准>>> Spring在事务管理时&#xff0c;对事务的处理做了极致的抽象&#xff0c;即PlatformTransactionManager。对事务的操作&#xff0c;简单地来说&#xff0c;只有三步操作&#xff1a;获取事务&#xff0c;提交事务&#x…

div方框弯曲边样式_使用弯曲样式编辑文本

div方框弯曲边样式Would you like a new Notepad replacement that incorporates the latest technologies while staying slim and fast? Text editors are usually bland, boring programs, but here’s a new one that makes your text come to life beautifully. 您是否想…

分布式锁的几种实现原理

分布式锁主流有三种模式&#xff1a; 实现方式 功能要求 实现难度 学习成本 运维成本 MySQL 的方案借助表锁/行锁实现 满足基本要求 不难 熟悉 小量OK、大量影响现有业务、1主多从架构&#xff0c;不方便扩容 通过 ZK 创建数据节点的方式实现 满足要求 熟悉 ZK API 即可 需要学…

如何破解您忘记的Windows密码

Here at How-To Geek, we’ve covered many different ways to reset your password for Windows—but what if you can’t reset your password? Or what if you’re using drive encryption that would wipe out your files if you changed the password? It’s time to cr…

sql语句练习50题(Mysql版)

表名和字段–1.学生表Student(s_id,s_name,s_birth,s_sex) –学生编号,学生姓名, 出生年月,学生性别–2.课程表Course(c_id,c_name,t_id) – –课程编号, 课程名称, 教师编号–3.教师表Teacher(t_id,t_name) –教师编号,教师姓名–4.成绩表Score(s_id,c_id,s_score) –学生编号…

OpenCV3 识别图中表格-JAVA 实现

2019独角兽企业重金招聘Python工程师标准>>> 关于 JAVA 学习 OpenCV 的内容&#xff0c;函数讲解。内容我均整理在 GitHubd的OpenCV3-Study-JAVA OpenCV 3 识别图中表格-Java 实现 1. 说明 网上大部分资料&#xff0c;都是针对 C的&#xff0c;python、java 的例子太…

内存泄露 体现在哪个数字上_Microsoft刚刚泄漏了一个新的开始菜单。 你喜欢哪个?...

内存泄露 体现在哪个数字上NTAuthority on TwitterTwitter上的NTAuthorityMicrosoft messed up today, releasing an internal build of Windows 10 to Windows Insiders. This build was never meant to see the light of day, but it features a new Start menu design—with…

简述 Spring Cloud 是什么

很多同学都了解了Spring &#xff0c;了解了 Spring Boot, 但对于 Spring Cloud 是什么还是比较懵逼的。 本文带你简单的了解下&#xff0c;什么是Spring Cloud。 Spring Cloud 是什么 从字面理解&#xff0c;Spring Cloud 就是致力于分布式系统、云服务的框架。 Spring Cloud …

js DOM节点

元素节点 4种方式获取 var oDiv document.getElementById("box");        //通过Id获取元素var oDiv document.getElementsByClassName("div")[0];   //通过类名获取元素  --》[ 0 ] 必须写var oDiv document.getElementsByTagName("…