रेगेक्स में/एस/मतलब क्या है?जावास्क्रिप्ट में regex S का अर्थ क्या है?
while (cur ! = null) {
if (cur.nodeType == 3 && ! /\S/. test(cur.nodeValue)) {
element. removeChild(cur);
} else if (cur. nodeType == 1) {
cleanWhitespace(cur);
}
}
टिप्पणी पहले से ही एक अच्छा संकेत देती है;) – delnan
त्वरित संदर्भ के लिए: '\ s' एक [shorthand] है (http://www.regular-expressions.info/shorthand.html)' [\ t \ r \ n \ f] ', जबकि' \ S' '[^ \ t \ r \ n \ f]' के बराबर है। – caiosm1005
https://stackoverflow.com/a/6507078/1599699 – Andrew