| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 491 人关注过本帖
标题:moz-bindings.xml报错(fck)
只看楼主 加入收藏
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
结帖率:87.5%
收藏
 问题点数:0 回复次数:1 
moz-bindings.xml报错(fck)
<?xml version="1.0" encoding="utf-8" ?>
<bindings xmlns="http://www.
    <binding id="numericfield">
        <implementation>
            <constructor>
                this.keypress = CheckIsDigit ;
            </constructor>
            <method name="CheckIsDigit">
                <body>
                    var iCode = keyCode ;

                    var bAccepted =
                        (
                            ( iCode >= 48 && iCode <= 57 )        // Numbers
                            || (iCode >= 37 && iCode <= 40)        // Arrows
                            || iCode == 8                        // Backspace
                            || iCode == 46                        // Delete
                        ) ;

                    return bAccepted ;
               </body>
            </method>
        </implementation>
        <events>
            <event type="keypress" value="CheckIsDigit()" />
        </events>
    </binding>
</bindings>

红色区域报The content of elements must consist of well-formed character data or markup.错
搜索更多相关主题的帖子: version method 
2011-05-15 20:34
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
收藏
得分:0 
加入<![CDATA[

]]>标签就没错了,不知对不对
2011-05-15 20:39
快速回复:moz-bindings.xml报错(fck)
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030729 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved