/1.3/docs/html/api/seed/kissy/isPlainObject.html
HTML | 261 lines | 213 code | 29 blank | 19 comment | 0 complexity | 7c9e267e9bda81ba3be2b693a98b9854 MD5 | raw file
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <meta name="data-spm" content="1" data-spm-protocol="i" />
- <title>isPlainObject — KISSY v1.3 Documentation</title>
- <link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.2/css/dpl/base-min.css"/>
- <link rel="stylesheet" href="../../../_static/kissy.css"/>
- <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
- <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
- <!--<link href='http://fonts.googleapis.com/css?family=Philosopher' rel='stylesheet' type='text/css'>-->
- <script>
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../../../',
- VERSION: '',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <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>
- <script>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-31470541-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </head>
- <body><div id="header">
- <h1 class="logo"><a alt="KISSY" href="http://docs.kissyui.com">
- <img src="http://a.tbcdn.cn/s/kissy/logo.png" />
- </a></h1>
- <ul class="navigation">
- <li><a href="http://docs.kissyui.com">首页</a></li>
- <li><a href="../../../../html/tutorials/index.html" >Tutorials</a></li>
- <li><a href="../../../../html/api/index.html" >API</a></li>
- <li><a href="../../../../html/demo/index.html" >DEMO</a></li>
- <li><a href="https://groups.google.com/group/kissy-ui" >Google Group</a></li>
- <li><a href="http://www.github.com/kissyteam" >Source Code</a></li>
- <li><a href="http://docs.kissyui.com/1.3/api/" >English API Docs</a></li>
- <li><a href="http://blog.kissyui.com/" target="_blank">Offical Blog</a></li>
- </ul>
- <div id="searchbox" class="searchbox">
- <form class="search" action="../../../search.html" method="get">
- <input type="text" name="q" size="28" class="ipt"/>
- <input type="submit" value="Go" class="btn"/>
- <input type="hidden" name="check_keywords" value="yes"/>
- <input type="hidden" name="area" value="default"/>
- </form>
- </div>
- </div>
- <div id="content">
- <div id="layout" class="layout grid-s6m0e7">
- <div class="col-main">
- <div class="main-wrap">
-
- <div class='related'>
- <h3>Navigation</h3>
-
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../../py-modindex.html" title="Python Module Index"
- >modules</a> | </li>
- <li class="right" >
- <a href="isRegExp.html" title="isRegExp"
- accesskey="N">next</a> | </li>
- <li class="right" >
- <a href="isObject.html" title="isObject"
- accesskey="P">previous</a> | </li>
- <li><a href="../../../index.html">KISSY v1.3 Documentation</a> » </li>
- <li><a href="../../index.html" >API Documentation</a> » </li>
- <li><a href="../index.html" >Seed</a> » </li>
- <li><a href="index.html" accesskey="U">lang</a> » </li>
- </ul>
- </div>
- <div class="body">
- <div class="section" id="isplainobject">
- <h1>isPlainObject<a class="headerlink" href="#isplainobject" title="Permalink to this headline">¶</a></h1>
- <div class="section" id="methods">
- <h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline">¶</a></h2>
- <dl class="function">
- <dt id="seed.KISSY.isPlainObject">
- <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>
- <dd><div class="line-block">
- <div class="line">Boolean <strong>KISSY.isPlainObject</strong> (o)</div>
- <div class="line">判断是否是普通对象, 通过 {} 或 new FunctionClass/Object() 创建的, 不包括内置对象以及宿主对象.</div>
- </div>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>o</strong> – 判断参数</td>
- </tr>
- </tbody>
- </table>
- <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>
- <span class="nx">S</span><span class="p">.</span><span class="nx">isPlainObject</span><span class="p">({});</span> <span class="c1">// => true</span>
- <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">// => false</span>
- <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">// => false</span>
- </pre></div>
- </div>
- <p>DEMO请参见 <a class="reference internal" href="../../../demo/seed/kissy/index.html#seed-lang"><em>KISSY seed-lang</em></a></p>
- </dd></dl>
- </div>
- </div>
- </div>
-
- <div class='related'>
- <h3>Navigation</h3>
-
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../../py-modindex.html" title="Python Module Index"
- >modules</a> | </li>
- <li class="right" >
- <a href="isRegExp.html" title="isRegExp"
- accesskey="N">next</a> | </li>
- <li class="right" >
- <a href="isObject.html" title="isObject"
- accesskey="P">previous</a> | </li>
- <li><a href="../../../index.html">KISSY v1.3 Documentation</a> » </li>
- <li><a href="../../index.html" >API Documentation</a> » </li>
- <li><a href="../index.html" >Seed</a> » </li>
- <li><a href="index.html" accesskey="U">lang</a> » </li>
- </ul>
- </div>
- <div id="disqus_thread"></div>
- <script>
- if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
- /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
- var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
- // The following are highly recommended additional parameters. Remove the slashes in front to use.
- //var disqus_identifier = '/anim';
- //var disqus_url = window.location;
- /* * * DON'T EDIT BELOW THIS LINE * * */
- (function() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- }
- </script>
- <!--<div id="google-search-box">
- <div id="cse" style="width: 100%;">Loading</div>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
- }
- </script>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
- google.setOnLoadCallback(function() {
- var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
- customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
- customSearchControl.draw('cse');
- }, true);
- }
- </script>
- </div>-->
- </div>
- </div>
-
- <div class="col-sub"><ul class="s-box api-toctree">
- <h2 class="s-box-hd">Seed</h2>
- <ul class="s-box-bd">
- <li><a href="index.html">lang</a></li>
- <li><a href="../loader/index.html">loader</a></li>
- </ul>
- </ul>
- <ul class="s-box core-toctree">
- <h2 class="s-box-hd">Core</h2>
- <ul class="s-box-bd">
- <li><a href="../../core/ajax/index.html">ajax</a></li>
- <li><a href="../../core/anim/index.html">anim</a></li>
- <li><a href="../../core/base/index.html">base</a></li>
- <li><a href="../../core/cookie/index.html">cookie</a></li>
- <li><a href="../../core/dom/index.html">dom</a></li>
- <li><a href="../../core/event/index.html">event</a></li>
- <li><a href="../../core/json/index.html">json</a></li>
- <li><a href="../../core/node/index.html">node</a></li>
- <li><a href="../../core/ua/index.html">ua</a></li>
- </ul>
- </ul>
- <ul class="s-box component-toctree">
- <h2 class="s-box-hd">Component</h2>
- <ul class="s-box-bd">
- <li><a href="../../component/button/index.html">button</a></li>
- <li><a href="../../component/calendar/index.html">calendar</a></li>
- <li><a href="../../component/color/index.html">color</a></li>
- <li><a href="../../component/combobox/index.html">combobox</a></li>
- <li><a href="../../component/component/index.html">component</a></li>
- <li><a href="../../component/datalazyload/index.html">datalazyload</a></li>
- <li><a href="../../component/dd/index.html">dd</a></li>
- <li><a href="../../component/editor/index.html">editor</a></li>
- <li><a href="../../component/imagezoom/index.html">imagezoom</a></li>
- <li><a href="../../component/menu/index.html">menu</a></li>
- <li><a href="../../component/menubutton/index.html">menubutton</a></li>
- <li><a href="../../component/mvc/index.html">mvc</a></li>
- <li><a href="../../component/overlay/index.html">overlay</a></li>
- <li><a href="../../component/promise/index.html">promise</a></li>
- <li><a href="../../component/resizable/index.html">resizable</a></li>
- <li><a href="../../component/rich-base/index.html">rich-base</a></li>
- <li><a href="https://github.com/jquery/sizzle/wiki/Sizzle-Home">sizzle</a></li>
- <li><a href="../../component/stylesheet/index.html">stylesheet</a></li>
- <li><a href="../../component/swf/index.html">swf</a></li>
- <li><a href="../../component/switchable/index.html">switchable</a></li>
- <li><a href="../../component/tabs/index.html">tabs</a></li>
- <li><a href="../../component/tree/index.html">tree</a></li>
- <li><a href="../../component/uri/index.html">uri</a></li>
- <li><a href="../../component/waterfall/index.html">waterfall</a></li>
- <li><a href="../../component/xtemplate/index.html">xtemplate</a></li>
- </ul>
- </ul>
-
- </div>
-
- </div>
- <script>
- if(!$.trim($(".col-extra").html())){
- $("#layout").removeClass("grid-s6m0e7").addClass("grid-s6m0");
- }
- </script>
- </div>
- <div id="footer">
- © Copyright 2010~2012, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>
- </div>
- </body>
- </html>