PageRenderTime 64ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/1.3/docs/html/api/seed/kissy/isPlainObject.html

https://github.com/yiminghe/kissyteam.github.com
HTML | 261 lines | 213 code | 29 blank | 19 comment | 0 complexity | 7c9e267e9bda81ba3be2b693a98b9854 MD5 | raw file
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="data-spm" content="1" data-spm-protocol="i" />
  6. <title>isPlainObject &mdash; KISSY v1.3 Documentation</title>
  7. <link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.2/css/dpl/base-min.css"/>
  8. <link rel="stylesheet" href="../../../_static/kissy.css"/>
  9. <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
  10. <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
  11. <!--<link href='http://fonts.googleapis.com/css?family=Philosopher' rel='stylesheet' type='text/css'>-->
  12. <script>
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT: '../../../',
  15. VERSION: '',
  16. COLLAPSE_INDEX: false,
  17. FILE_SUFFIX: '.html',
  18. HAS_SOURCE: true
  19. };
  20. </script>
  21. <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script>
  22. <script>
  23. var _gaq = _gaq || [];
  24. _gaq.push(['_setAccount', 'UA-31470541-1']);
  25. _gaq.push(['_trackPageview']);
  26. (function() {
  27. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  28. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  29. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  30. })();
  31. </script>
  32. </head>
  33. <body><div id="header">
  34. <h1 class="logo"><a alt="KISSY" href="http://docs.kissyui.com">
  35. <img src="http://a.tbcdn.cn/s/kissy/logo.png" />
  36. </a></h1>
  37. <ul class="navigation">
  38. <li><a href="http://docs.kissyui.com">首页</a></li>
  39. <li><a href="../../../../html/tutorials/index.html" >Tutorials</a></li>
  40. <li><a href="../../../../html/api/index.html" >API</a></li>
  41. <li><a href="../../../../html/demo/index.html" >DEMO</a></li>
  42. <li><a href="https://groups.google.com/group/kissy-ui" >Google Group</a></li>
  43. <li><a href="http://www.github.com/kissyteam" >Source Code</a></li>
  44. <li><a href="http://docs.kissyui.com/1.3/api/" >English API Docs</a></li>
  45. <li><a href="http://blog.kissyui.com/" target="_blank">Offical Blog</a></li>
  46. </ul>
  47. <div id="searchbox" class="searchbox">
  48. <form class="search" action="../../../search.html" method="get">
  49. <input type="text" name="q" size="28" class="ipt"/>
  50. <input type="submit" value="Go" class="btn"/>
  51. <input type="hidden" name="check_keywords" value="yes"/>
  52. <input type="hidden" name="area" value="default"/>
  53. </form>
  54. </div>
  55. </div>
  56. <div id="content">
  57. <div id="layout" class="layout grid-s6m0e7">
  58. <div class="col-main">
  59. <div class="main-wrap">
  60. <div class='related'>
  61. <h3>Navigation</h3>
  62. <ul>
  63. <li class="right" style="margin-right: 10px">
  64. <a href="../../../genindex.html" title="General Index"
  65. accesskey="I">index</a></li>
  66. <li class="right" >
  67. <a href="../../../py-modindex.html" title="Python Module Index"
  68. >modules</a> | </li>
  69. <li class="right" >
  70. <a href="isRegExp.html" title="isRegExp"
  71. accesskey="N">next</a> | </li>
  72. <li class="right" >
  73. <a href="isObject.html" title="isObject"
  74. accesskey="P">previous</a> | </li>
  75. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  76. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  77. <li><a href="../index.html" >Seed</a> &#187; </li>
  78. <li><a href="index.html" accesskey="U">lang</a> &#187; </li>
  79. </ul>
  80. </div>
  81. <div class="body">
  82. <div class="section" id="isplainobject">
  83. <h1>isPlainObject<a class="headerlink" href="#isplainobject" title="Permalink to this headline"></a></h1>
  84. <div class="section" id="methods">
  85. <h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline"></a></h2>
  86. <dl class="function">
  87. <dt id="seed.KISSY.isPlainObject">
  88. <tt class="descclassname">KISSY.</tt><tt class="descname">isPlainObject</tt><big>(</big><big>)</big><a class="headerlink" href="#seed.KISSY.isPlainObject" title="Permalink to this definition"></a></dt>
  89. <dd><div class="line-block">
  90. <div class="line">Boolean <strong>KISSY.isPlainObject</strong> (o)</div>
  91. <div class="line">判断是否是普通对象, 通过 {} new FunctionClass/Object() 创建的, 不包括内置对象以及宿主对象.</div>
  92. </div>
  93. <table class="docutils field-list" frame="void" rules="none">
  94. <col class="field-name" />
  95. <col class="field-body" />
  96. <tbody valign="top">
  97. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>o</strong> &#8211; 判断参数</td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. <div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">S</span> <span class="o">=</span> <span class="nx">KISSY</span><span class="p">;</span>
  102. <span class="nx">S</span><span class="p">.</span><span class="nx">isPlainObject</span><span class="p">({});</span> <span class="c1">// =&gt; true</span>
  103. <span class="nx">S</span><span class="p">.</span><span class="nx">isPlainObject</span><span class="p">(</span><span class="k">new</span> <span class="nb">Date</span><span class="p">());</span> <span class="c1">// =&gt; false</span>
  104. <span class="nx">S</span><span class="p">.</span><span class="nx">isPlainObject</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">);</span> <span class="c1">// =&gt; false</span>
  105. </pre></div>
  106. </div>
  107. <p>DEMO请参见 <a class="reference internal" href="../../../demo/seed/kissy/index.html#seed-lang"><em>KISSY seed-lang</em></a></p>
  108. </dd></dl>
  109. </div>
  110. </div>
  111. </div>
  112. <div class='related'>
  113. <h3>Navigation</h3>
  114. <ul>
  115. <li class="right" style="margin-right: 10px">
  116. <a href="../../../genindex.html" title="General Index"
  117. accesskey="I">index</a></li>
  118. <li class="right" >
  119. <a href="../../../py-modindex.html" title="Python Module Index"
  120. >modules</a> | </li>
  121. <li class="right" >
  122. <a href="isRegExp.html" title="isRegExp"
  123. accesskey="N">next</a> | </li>
  124. <li class="right" >
  125. <a href="isObject.html" title="isObject"
  126. accesskey="P">previous</a> | </li>
  127. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  128. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  129. <li><a href="../index.html" >Seed</a> &#187; </li>
  130. <li><a href="index.html" accesskey="U">lang</a> &#187; </li>
  131. </ul>
  132. </div>
  133. <div id="disqus_thread"></div>
  134. <script>
  135. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  136. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  137. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  138. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  139. //var disqus_identifier = '/anim';
  140. //var disqus_url = window.location;
  141. /* * * DON'T EDIT BELOW THIS LINE * * */
  142. (function() {
  143. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  144. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  145. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  146. })();
  147. }
  148. </script>
  149. <!--<div id="google-search-box">
  150. <div id="cse" style="width: 100%;">Loading</div>
  151. <script>
  152. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  153. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  154. }
  155. </script>
  156. <script>
  157. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  158. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  159. google.setOnLoadCallback(function() {
  160. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  161. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  162. customSearchControl.draw('cse');
  163. }, true);
  164. }
  165. </script>
  166. </div>-->
  167. </div>
  168. </div>
  169. <div class="col-sub"><ul class="s-box api-toctree">
  170. <h2 class="s-box-hd">Seed</h2>
  171. <ul class="s-box-bd">
  172. <li><a href="index.html">lang</a></li>
  173. <li><a href="../loader/index.html">loader</a></li>
  174. </ul>
  175. </ul>
  176. <ul class="s-box core-toctree">
  177. <h2 class="s-box-hd">Core</h2>
  178. <ul class="s-box-bd">
  179. <li><a href="../../core/ajax/index.html">ajax</a></li>
  180. <li><a href="../../core/anim/index.html">anim</a></li>
  181. <li><a href="../../core/base/index.html">base</a></li>
  182. <li><a href="../../core/cookie/index.html">cookie</a></li>
  183. <li><a href="../../core/dom/index.html">dom</a></li>
  184. <li><a href="../../core/event/index.html">event</a></li>
  185. <li><a href="../../core/json/index.html">json</a></li>
  186. <li><a href="../../core/node/index.html">node</a></li>
  187. <li><a href="../../core/ua/index.html">ua</a></li>
  188. </ul>
  189. </ul>
  190. <ul class="s-box component-toctree">
  191. <h2 class="s-box-hd">Component</h2>
  192. <ul class="s-box-bd">
  193. <li><a href="../../component/button/index.html">button</a></li>
  194. <li><a href="../../component/calendar/index.html">calendar</a></li>
  195. <li><a href="../../component/color/index.html">color</a></li>
  196. <li><a href="../../component/combobox/index.html">combobox</a></li>
  197. <li><a href="../../component/component/index.html">component</a></li>
  198. <li><a href="../../component/datalazyload/index.html">datalazyload</a></li>
  199. <li><a href="../../component/dd/index.html">dd</a></li>
  200. <li><a href="../../component/editor/index.html">editor</a></li>
  201. <li><a href="../../component/imagezoom/index.html">imagezoom</a></li>
  202. <li><a href="../../component/menu/index.html">menu</a></li>
  203. <li><a href="../../component/menubutton/index.html">menubutton</a></li>
  204. <li><a href="../../component/mvc/index.html">mvc</a></li>
  205. <li><a href="../../component/overlay/index.html">overlay</a></li>
  206. <li><a href="../../component/promise/index.html">promise</a></li>
  207. <li><a href="../../component/resizable/index.html">resizable</a></li>
  208. <li><a href="../../component/rich-base/index.html">rich-base</a></li>
  209. <li><a href="https://github.com/jquery/sizzle/wiki/Sizzle-Home">sizzle</a></li>
  210. <li><a href="../../component/stylesheet/index.html">stylesheet</a></li>
  211. <li><a href="../../component/swf/index.html">swf</a></li>
  212. <li><a href="../../component/switchable/index.html">switchable</a></li>
  213. <li><a href="../../component/tabs/index.html">tabs</a></li>
  214. <li><a href="../../component/tree/index.html">tree</a></li>
  215. <li><a href="../../component/uri/index.html">uri</a></li>
  216. <li><a href="../../component/waterfall/index.html">waterfall</a></li>
  217. <li><a href="../../component/xtemplate/index.html">xtemplate</a></li>
  218. </ul>
  219. </ul>
  220. </div>
  221. </div>
  222. <script>
  223. if(!$.trim($(".col-extra").html())){
  224. $("#layout").removeClass("grid-s6m0e7").addClass("grid-s6m0");
  225. }
  226. </script>
  227. </div>
  228. <div id="footer">
  229. &copy; Copyright 2010~2012, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>
  230. </div>
  231. </body>
  232. </html>