1518姓名测试打分
欢迎来到1518姓名测试打分!这是一个免费的名字测试打分网站,可以帮助您了解自己的名字在文化、风水等方面的含义。只需输入您的姓名,即可获得一个分数,分数越高,名字越吉利。
如何使用
- 在浏览器地址栏中粘贴以下网址并访问:
https://m.1518.com/?f=s
- 将您的姓名输入到页面中的输入框中。
- 点击“开始测试”按钮,等待页面加载完成。
- 查看页面下方的分数结果,了解自己名字的吉凶程度。
注意事项
- 请确保您使用的是支持JavaScript的浏览器进行访问。
- 请将网页链接复制到浏览器地址栏中,以避免因重定向而导致访问失败。
代码片段
// 判断是否为移动设备
var fromclientstr = window.location.search;
if (fromclientstr.indexOf("fpcstate=pc") == -1) {
var fromclientua = navigator.userAgent.toLowerCase();
var fromclients1 = fromclientua.match(/android/i);
var fromclients2 = fromclientua.match(/iphone os/i);
if (fromclients1 != null || fromclients2 != null) {
window.location.href = "https://m.1518.com/?f=s";
}
}
// 去除字符串两端的空格
function trimspace(str) {
return str.replace(/\s/g, '');
}
// 验证姓名是否为汉字(仅支持简体和繁体)
function ValidateXingming(str) {
return /^[\u4e00-\u9fa5]+$/.test(str);
}