<script type=
"text/javascript"
>
$(
function
()
{
$.messager.defaults = { ok:
"是"
, cancel:
"否"
};
//修改显示文字
$.messager.confirm(
"操作提示"
,
"您确定要执行操作吗?"
,
function
(data)
{
if
(data)
{
alert(
"是"
);
}
else
{
alert(
"否"
);
}
});
});
</script>
Array.prototype.remove = function(dx) {
if (isNaN(dx) || dx
> this.length) {
return false;
}
for (var i = 0, n = 0; i < this.length; i++) {
if
(this[i] != this[dx]) {
this[n++] = this[i];
}
}
this.length -= 1;
};
for (var i = 0; i < rowsu.length; i++) {
if
(parseInt(rowsu[i].KPIPercentage) + parseInt(rowsu[i].TaskPercentage) +
parseInt(rowsu[i].AttitudePercentage) != 100) {
flag =
"维度数据之和不等于100";
rowsu.remove(i);
i
= 0;
}
}
$.messager.confirm 用法,布布扣,bubuko.com
原文:http://www.cnblogs.com/miraclesakura/p/3621166.html