layui弹窗、字符串转一维数组

var layer = layui.layer;
layer.open({
title: "我的信息",
area: ["350px", "400px"],
//type: 1,
content: ``,
btn: ["确定", "充值"],
// yes: function(index, layero) {
// //按钮【按钮一】的回调
// },
btn2: function(index, layero) {
//按钮【按钮二】的回调
return false; //开启该代码可禁止点击该按钮关闭
}
});
 
询问框:
layer.confirm('添加成功', function (index) {
layer.close(index);
location.href = "yonghu_admin.html";
}
input只能输入数字:
onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"
字符串转一维数组:
$paystr=“t01,180,1_t01,280,1_x02,80,1”
$paystr =$_REQUEST["paystr"];
$arr = array();
$arr = explode('_',$paystr);
原文地址:https://www.cnblogs.com/weixiaofantasy/p/9698280.html