小编Jak*_*eck的帖子

我可以安全地处理小写的电子邮件地址?

理论上,电子邮件区分大小写.但是使用电子邮件作为系统登录我希望它们都是小写的(即john@smith.com和John@smith.com不能是不同的用户).

对于在电子邮件地址中使用区分大小写的用户来说,这可能会出现问题吗?难道有人用它了吗?

编辑:因为有许多"保存案例,登录时忽略"答案:如果我真的有两个不同的用户john @smith和John @ smith,这个系统会破坏,不是吗?

例如:john @ smith和John @ smith有密码123.我怎么知道哪一个刚认证了?

email-address case-sensitive case-insensitive

12
推荐指数
4
解决办法
3132
查看次数

同一个域名中最顶层的iframe是什么?

如何获得同一域中最顶层的iframe,即

iframe level 1 example.org
    iframe level 2 example.org
    iframe level 2 example.org 
        iframe level 3 example.org <-- should return iframe level 1

iframe level 1 other-example.org
    iframe level 2 example.org
    iframe level 2 example.org 
        iframe level 3 example.org <-- should return iframe level 2

iframe level 1 other-example.org
    iframe level 2 example.org
    iframe level 2 example.org <-- should return iframe level 2 (this)
Run Code Online (Sandbox Code Playgroud)

我需要它,因为我有一个网站应该在另一个域的iframe中工作并且独立.

在这个网站上有一些依赖于window.top的脚本,它不应该是顶层,而是同一域中最顶层的iframe.

javascript iframe

1
推荐指数
1
解决办法
1192
查看次数