We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7aa66 commit 1f7490eCopy full SHA for 1f7490e
Bundle/Resources/public/strategy/index.js
@@ -95,3 +95,16 @@ function urlPreprocess(url) {
95
var reg = new RegExp("amp;","g");
96
return url.replace(reg, '');
97
}
98
+
99
+/**
100
+ * 处理多行文本
101
+ *
102
+ * 定义使用方式 https://www.cnblogs.com/starlet/archive/2010/05/24/1742572.html
103
104
+ * @returns {String}
105
+ */
106
+Function.prototype.getMultiLine = function() {
107
+ var lines = new String(this);
108
+ lines = lines.substring(lines.indexOf("/*") + 3, lines.lastIndexOf("*/"));
109
+ return lines;
110
+}
0 commit comments