编码 :
<telerik:RadNumericTextBox ShowSpinButtons="False" DisplayText="Infinite"
ID="MaximumAmount_tb" runat="server" IncrementSettings-InterceptArrowKeys="true">
<ClientEvents OnFocus="OnMAximumAmounttbFocus" />
</telerik:RadNumericTextBox>
function OnMAximumAmounttbFocus(sender, args) {
//alert(sender.get_displayValue());
if (sender.get_displayValue() == "Infinite") {
sender.set_value("9,999,999,999,999.99999");
}
else
{return false; }
}
我总是得到这个数字作为焦点的结果:10000000000000 为什么?以及如何解决我的问题以显示:9999999999999.99999?