Shitake.js是什么?它如何帮助开发长尾关键词优化?
- 内容介绍
- 文章标签
- 相关推荐
本文共计120个文字,预计阅读时间需要1分钟。
javascript(function() { Window_Base.prototype.processEscapeCharacter=function(code, textState) { switch (code) { case 'C': this.changeTextColor(this.textColor(this.obtainEscapeParam(textState))); break; case 'I': this.processDrawIcon(this.obtainEscapeParam(textState)); break; } };})();
(function() { Window_Base.prototype.processEscapeCharacter = function(code, textState) { switch (code) { case 'C': this.changeTextColor(this.textColor(this.obtainEscapeParam(textState))); break; case 'I': this.processDrawIcon(this.obtainEscapeParam(textState), textState); break; case '{': this.makeFontBigger(); break; case '}': this.makeFontSmaller(); break; case '*': this.makeFontItalic(); break; } }; Window_Base.prototype.obtainEscapeCode = function(textState) { textState.index++; var regExp = /^[\\*\\$\\.\\|\\^!><\\{\\}\\\\]|^[A-Z]+/i; var arr = regExp.exec(textState.text.slice(textState.index)); if (arr) { textState.index += arr[0].length; return arr[0].toUpperCase(); } else { return ''; } }; Window_Base.prototype.makeFontItalic = function() { this.contents.fontItalic = (this.contents.fontItalic ? false : true); }; })()
本文共计120个文字,预计阅读时间需要1分钟。
javascript(function() { Window_Base.prototype.processEscapeCharacter=function(code, textState) { switch (code) { case 'C': this.changeTextColor(this.textColor(this.obtainEscapeParam(textState))); break; case 'I': this.processDrawIcon(this.obtainEscapeParam(textState)); break; } };})();
(function() { Window_Base.prototype.processEscapeCharacter = function(code, textState) { switch (code) { case 'C': this.changeTextColor(this.textColor(this.obtainEscapeParam(textState))); break; case 'I': this.processDrawIcon(this.obtainEscapeParam(textState), textState); break; case '{': this.makeFontBigger(); break; case '}': this.makeFontSmaller(); break; case '*': this.makeFontItalic(); break; } }; Window_Base.prototype.obtainEscapeCode = function(textState) { textState.index++; var regExp = /^[\\*\\$\\.\\|\\^!><\\{\\}\\\\]|^[A-Z]+/i; var arr = regExp.exec(textState.text.slice(textState.index)); if (arr) { textState.index += arr[0].length; return arr[0].toUpperCase(); } else { return ''; } }; Window_Base.prototype.makeFontItalic = function() { this.contents.fontItalic = (this.contents.fontItalic ? false : true); }; })()

