标签:prompt get == bsp array dde font width ack
//css
/*弹窗*/
.mui-popup-title {
color: #E26602;
font-size: 16px;
}
.mui-popup-button {
color: #E26602;
font-size: 15px;
}
.mui-popup-input {
height: 150px;
}
.mui-popup-input input {
font-size: 14px;
width: 100%;
height: 30px;
margin: 10px 0 0;
padding: 0 5px;
border: 1px solid rgba(0,0,0,.3);
border-radius: 0;
background: #fff;
}
.prompt bdi {
color: #E26602;
padding-right: 5px;
}
textarea {
height: 145px;
color: #666666;
font-size: 15px;
padding: 4px 8px;
margin-top: 10px;
}
//js
document.getElementById("ipt_endorsing").addEventListener(‘tap‘, function (e) {
e.detail.gesture.preventDefault();
var btnArray = [‘取消‘, ‘确定‘];
mui.prompt(‘‘, ‘‘, ‘编辑代言词‘, btnArray, function (e) {
if (e.index == 1) {
var value = $(‘.mui-popup-input textarea‘).val();
if (e.index == 1) {
$("#ipt_endorsing").html(value);
}
else {
}
}
}, ‘div‘);
$(‘.mui-popup-input‘).html(‘‘);
$(‘.mui-popup-input‘).append(‘<textarea placeholder="编辑代言词">‘ + $("#ipt_endorsing").html() + ‘</textarea>‘)
});
标签:prompt get == bsp array dde font width ack
原文地址:https://www.cnblogs.com/yyy251/p/9269725.html