1.可以在不需要默认填写的input框中设置 autocomplete="new-password"
2.修改readonly属性
<input type="password" readonly onfocus="this.removeAttribute('readonly');"/>
3. 通常我们会在form表单上加入autocomplete="off" 或者 在输入框中加入autocomplete="off"
<form method="post" action="" name="login" autocomplete...阅读全文>>
阅读全文>>
1. 让纵坐标轴在横轴的0点位置
yAxis : [
{
type : 'category',
axisLine : {onZero: true}, // 这里就是你要的东西
axisLabel : {
formatter: '{value} km'
},
boundaryGap : false,
&...阅读全文>>
阅读全文>>
有中文乱码是因为Javascript页面和action类中使用的编码方式不一致造成的,可采用如下两种方法解决:
(1)页面的Javascript做两次encodeURI,服务器端获取后做一次UTF-8转码,因为前两次进行编码后都变成了英文的字节码,所以到服务器端无论如何解码都不会错误,推荐使用该方法。
var url=“Ajaxserver?name=”+encodeURI(encodeURI($("#userName").val()));
(2)在客户端JavaSc...阅读全文>>
阅读全文>>
阅读全文>>
阅读全文>>
阅读全文>>
发现使用layui的table时候经常会获取不到table的全部数据,网上说用循环获取,也有说用cache,但是还是无法满意的获取table的数据,于是打开table的框架,赋值了个全局变量,将变量等于他内部的cache的数据即可,如果想避免变量对全局变量的污染,可以使用写个getDate方法,如下table.js(这是模块化加载的):
/** layui-v2.1.5 MIT License By http://www.layui.com */ ;
var allData=null;
layui.define(["laytpl", "laypage", ...阅读全文>>