注意:根据ECMAScript5.1,第15.1.1.3节,window.undefined是只读的.
当我最近将Facebook Connect与Tersus集成时,我最初收到错误消息,Invalid Enumeration Value并Handler already exists在尝试调用Facebook API函数时.
事实证明,问题的原因是
object.x === undefined
Run Code Online (Sandbox Code Playgroud)
当'object'中没有属性'x'时返回false.
我通过在两个Facebook函数中用常规相等替换严格相等来解决这个问题:
FB.Sys.isUndefined = function(o) { return o == undefined;};
FB.Sys.containsKey = function(d, key) { return d[key] != undefined;};
Run Code Online (Sandbox Code Playgroud)
这使得事情对我有用,但似乎暗示了Facebook的JavaScript代码和我自己的代码之间的某种冲突.
什么可能导致这个?
提示:这是有据可查的undefined == null同时undefined !== null.这不是问题.问题是我们如何得到undefined !== undefined.
在下面,也可以在例如这里,两者的WebKit(Safari 5的,铬10.0.648.205)和Mozilla(FF 4)保持DIV DIV围绕浏览器窗口的可见宽度,而表是一样宽其内容.
我希望DIV能够像TABLE一样扩展,但由于浏览器的行为是一致的,我怀疑这是一个功能而不是bug.
有趣的是,如果DIV设置为float:left,它确实会像table一样宽.
有什么解释吗?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Wide Table</title>
<style>
#container {
background-color:blue;
/* float:left;*/
}
</style>
</head>
<body>
<div id="container">
<table >
<tr id="tr">
<td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td><td>Table Cell</td>
</tr>
</table>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我需要签署我开发的企业Windows应用商店应用,以便用户可以将其加载到他们的设备中.
我正在从GoDaddy获取代码签名证书.很多接下来的步骤对我来说仍然是模糊的 - 任何额外的细节将不胜感激.
到目前为止我做了什么
下一步