Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 javascript 寻找一个简单的文本框日期掩码“mm/dd/yy”函数。我不需要它依赖于 jquery 或任何其他类型的插件。
任何帮助,将不胜感激。提前致谢。
function validateDate(date) { var re = /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](\d\d)$/; return re.test(date); }
我正在尝试require()在 php 中使用我的 rss 提要模板。不幸的是,我需要在我正在使用的服务器上启用速记标签。
require()
我必须开始我的 rss<?xml version="1.0" encoding="UTF-8" ?>并<? ... ?&
<?xml version="1.0" encoding="UTF-8" ?>
<? ... ?&