陷阱是什么?这些都是会咬你一口的小细节,因为你没有在按回车键的时候说出这个秘密词或揉你的肚子3次。明白了!
Internet Explorer
- You can’t have a popup window with aspace in the name.
- When making an HTA, don’t open links inside the HTA. You can’t use
javascript:void(0)
链接,当它试图作为一个新页面打开时,你会得到令人愉快的安全警告。使用“#”(不幸的是,这会导致你在屏幕上跳来跳去。Then use #top…)
Firefox
- There’s afocus bug in input areas. Workaround: Need an autocomplete flag
Programming
- Always, always rebuild clean. Check this first – you could be using old files, be in the wrong directory, or in the wrong terminal window.
Shell Scripting
- Beware newlines: Ran a commmand like this ver = “svn info | grep “Revision” | gawk …” to parse some input. Unfortunately, did not “chomp” off the newline at the end. The newline went into other commands, caused problems, and was hard to see.
Javascript
object[name] != object['name']
. Beware a string in variable name and the string “name”. Confusing? Yes. Maybe there’s something to hungarian notation after all (no, no, just kidding!)CSS:
font-size: 10px
becomes variableobject.style.fontSize
in javascript. CSS proprties without dashes are the same (i.e., height).onpaste/oninput
detects paste events inside an input area from the mouse (onkeypress
won’t work).
Apache
- Need the qsa flag in order to pass the query string through for mod-rewrite rules (otherwise, you just get the page and not the query).
WordPress
- If your comments disappear suddenly, do a repair table with PhpMyAdmin (Operations > Repair Table)