`

object.toSource()

阅读更多

alert("myObject is " + myObject.toSource());

 

先看看上面这个句子,做什么用呢?在js中我们经常去alert一个对象时,会弹出object,而事实上我们更想看这个对象包含的内容.比如我从server收到一个json对象,我想看看这个json对象的内容,如果我直接alert,没有什么用.

这个时候,上面这个句子就太伟大了.懂了把...

 

我仅在FF下测试,有人说在safari和chrome不能用,我没有试.

 

 

分享到:
评论

相关推荐

    Javascript.Object.Oriented.Programming.pdf

    With a fair understanding of interfaces, multiple inheritance, and composition, you will move on to refactor existing code and to organize your source for easy maintenance and extension. The third ...

    正则表达式

    正则表达式中的特殊字符 字符 含意 \ 做为转意,即通常在"\"后面的字符不按原来意义解释,如/b/匹配字符"b",当b前面加了反斜杆后/\b/,转意为匹配一个单词的边界。 -或- 对正则表达式功能字符的还原,如"*"匹配它...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Ability to scale grid to fit it to page width. Ability to print/preview title for grid. Ability to print/preview page header and page footer where you can specify macros for current page, current...

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    3 Getting to the Root – Source Code Debuggers . . . . . . 23 3.1 Visualizing Program Behavior . . . . . . . . 23 3.2 Prepare a Simple Predictable Example . . . . . . . 24 3.3 Get the Debugger to Run...

    FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版

    ability to put an external object inside cross-tab AddWidth, AddHeight properties to increase width&height of the cell AutoSize property, ability to resize cells manually line object can have ...

    Debugging with GDB --2007年

    Stepping to the next line in the source program . . . . . . . . . . . . Stepping into a subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examining the Stack . . . . . . . . . ....

    Use Case Driven Object Modeling with UML_ Theory and Practice.pdf

    Overview:Getting from Use Cases to Source Code. . . . . . . . . . . . . . . 2 Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Analysis/...

    Thinking in Java 4th Edition

    Source code ........................... 12 Coding standards ......................... 14 Errors .................................... 14 Introduction to Objects 15 The progress of abstraction ............

    RComponent.DataObject

    It provides a simple and flexible way to map objects to relational database. RComponent.DataObject handles all types of relations,automatic transaction management, Automatically updates the database ...

    Berg.Next.Suite.v5.8.09.1.Full.Source

    NextInspector is a powerful and completely new Object Inspector component with classic style (normal style) and enhanced style where Vista/XP themes are fully supported! It is v... * overview * *...

    FastReport.v4.8.36 for.Delphi.BCB.Full.Source中文修正版

    Full source codes in the report generator, which allows you to thoroughly understand the work logic and to make any necessary changes and minor adjustments. Enterprise Edition This edition goes ...

    delphi data object

    Using too many data aware components would be lower the database performanceand hard to build the business object layer.This components set includes multiple loose database connection engine....

    Developing Statistical Software in Fortran 95

    50 3 A Pseudo Object-Oriented Style 55 3.1 Basic Concepts of Object-Oriented Programming . . . . . . 56 Contents xi 3.1.1 Objects and Classes . . . . . . . . . . . . . . . . . . 56 ...

    Learning.Object-Oriented.Programming.1785289632

    With a fair understanding of interfaces, multiple inheritance, and composition, you will move on to refactor existing code and to organize your source for easy maintenance and extension. Learning ...

    Debugging with GDB --2001年5.3

    Contributors to GDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 A Sample GDB Session . . . . . . . . . . . . . . . . . . . . 7 2 Getting In and Out of GDB . ....

    XLSReadWriteII.v.5.20.67.D7.D2010-XE10

    Full source code included. We released the first version of XLSReadWrite in 1998. At that time it was the only component that could read and write Excel 97+ files. We are commited to have the leading ...

    ti dsp tms2802芯片资料

    1.1 Introduction to the CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.1.1 Compatibility With Other TMS320 CPUs . . . . . . . . . ....

    TMS.Async32.v1.2.for.Delphi.BCB.Full.Source.rar

    procedure TFrmMain.VaComm1RxChar(Sender: TObject; Count: Integer); var a, b:integer; j:char; begin Timer1.Enabled:=False; b := vacomm1.ReadBufUsed; for a := RecvPoint to RecvPoint+b-1 do ...

Global site tag (gtag.js) - Google Analytics