tg://asdfwefqwef
tel://qwdqwdqwd
sms://qwdrgegwerg
calculator://123
<a href="calculator://3333333333">open windows calculator</a>
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
categoryPercentage: 1,
barPercentage: 1,
borderColor: "rgba(0,0,0,0)",
borderWidth: [ { left: 0, right: 30 }, 30, 30,30, 30, { left: 30, right: 0 } ],
}]
}
Object.prototype.fancyMethodName = function(path, value) {
let currentPath = this;
const propNamesArray = path.split('.');
const lastPropIndex = propNamesArray.length - 1;
propNamesArray.forEach((propName, idx) => {
if (idx >= lastPropIndex) {
currentPath[propName] = value;
return;
};
if (!currentPath.hasOwnProperty(propName)) {
currentPath[propName] = {};
};
currentPath = currentPath[propName];
});
};
let obj = {};
obj.fancyMethodName('a.b.c.d.e.f', 'some value' );
console.log(obj.a.b.c.d.e.f);
input.getAttribute("value") == "il.@ml.ru"
, то он просто в стак оверфлоу улетит, какая то странно выглядящая рекурсия тут получается// <button class="btn" onclick="bot()"></button>
function bot() {
document.querySelector(".btn").click();
};