语言吧

<tfoot draggable='sEl'></tfoot>

打印JAVASCRIPT对像的JS函数

function HdhCmsPrintJavascriptObject(HdhObject){

 var HdhCmsText = "";

 for (var HdhCmsItem in HdhObject) {

    var HdhCmsValue = HdhObject[HdhCmsItem];

    var HdhCmsPadding = "";

    if (typeof (HdhCmsValue) == 'object') {

        HdhCmsText += HdhCmsPadding + "'" + HdhCmsItem + "' ...\n";

    } else {

        HdhCmsText += HdhCmsPadding + "'" + HdhCmsItem + "' => \"" + HdhCmsValue + "\"\n";

    }

 }

return HdhCmsText ;

}


查看更多关于打印JAVASCRIPT对像的JS函数的详细内容...

  阅读:1382次
  阅读:1382次