回答
- demo answered 11 years ago
function walk(node) {
switch (node.nodeType) {
case 1: // Element
if (nocode.test(node.className)) { break; }
if ('BR' === node.nodeName) {
breakAfter(node);
// Discard the
since it is now flush against a .
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
for (var child = node.firstChild; child; child = child.nextSibling) {
walk(child);
}
}
break;
case 3: case 4: // Text
if (isPreformatted) {
var text = node.nodeValue;
var match = text.match(lineBreak);
if (match) {
var firstLine = text.substring(0, match.index);
node.nodeValue = firstLine;
var tail = text.substring(match.index + match[0].length);
if (tail) {
var parent = node.parentNode;
parent.insertBefore(
document.createTextNode(tail), node.nextSibling);
}
breakAfter(node);
if (!firstLine) {
// Don't leave blank text nodes in the DOM.
node.parentNode.removeChild(node);
}
}
}
break;
}
}
- demo answered 11 years ago
- last active 11 years ago
nice
- demo answered 11 years ago
dcasdfasfasf
- demo answered 11 years ago
- last active 10 years ago
This is in australua
- demo asked 11 years ago
- last active 9 years ago
<iframe width=”640″ height=”360″ src=”https://www.youtube.com/embed/X6Hi09wqj14?rel=0&showinfo=0″ frameborder=”0″ allowfullscreen></iframe>
- demo answered 11 years ago
- demo answered 11 years ago
What are the Wordpress alternatives for Ruby on Rails? How do they compare to Wordpress? NOTE: Th...
- Bradley asked 15 years ago
- last active 15 years ago
Asnwer in BOLD
- demo answered 11 years ago
サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト
サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト
- demo answered 11 years ago
This is a fresh comment
- demo answered 11 years ago
In reply to: Eklentinin Türkçe dil paketi var mı?
Eklentiyi denemek için cevap yazıyorum.
- demo answered 11 years ago
Я ваще ХЗ чё делать
- demo answered 11 years ago