主题: 麻烦各位,关于字数统计的问题!
作者: daihao, 发布日期: 2014-06-21 11:53:36, 浏览数: 1673

使用如下代码,无效:


<script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('#editor_id', {

            afterCreate : function() {
				this.loadPlugin('autoheight');
				K('.word_count1').html(this.count());
				k('.word_count2').html(this.count('text'));
			},


        });
     });
</script>
或者:


<script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('#editor_id', {

            afterCreate : function() {
				this.loadPlugin('autoheight');
				$('.word_count1').html(this.count());
				$('.word_count2').html(this.count('text'));
			},


        });
     });
</script>
请问,var editor; KindEditor.ready(function(K) { 方式怎么调用???
发表新帖 发表回复