⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 javasrcipt编写的Ajax的类库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
										(
										 value 
										)
									</a></div>
<div class="mDesc">encodes a value so that any special chars will be transformed into html entities.
e.g. " will be &amp;quot;</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAM4J0"><br><div><strong> value</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the value you want to encode</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAXTK0" onclick="toggle('mdetails_5IDAXTK0')">isAlphabetic
										(
										 character 
										)
									</a></div>
<div class="mDesc">Checks if a char is an alphabetic character or not. A-Z or a-z</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAXTK0"><br><div><strong>byVal character</strong>
												: </div>
<div><strong>Return </strong>
											(
											<span class="type">bool</span> 
											) :
											Wether the char is alphabetic or not.</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAG5J0" onclick="toggle('mdetails_5IDAG5J0')">isValidEmail
										(
										 value 
										)
									</a></div>
<div class="mDesc">checks if a given string is a syntactically valid email</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAG5J0"><br><div><strong> value</strong>
												: </div>
<div><strong>Return </strong>
											(
											<span class="type">bool</span> 
											) :
											true if it is valid</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAU1J0" onclick="toggle('mdetails_5IDAU1J0')">JSEncode
										(
										 val 
										)
									</a></div>
<div class="mDesc"></div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAU1J0">Makes a string javascript persistent. Changes special characters, etc.<br><br><div><strong>byVal val</strong>
												: </div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											encoded string which can be used within javascript strings.</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAOLK0" onclick="toggle('mdetails_5IDAOLK0')">multiArrayToString
										(
										 arr seperator dimension 
										)
									</a></div>
<div class="mDesc">Converts a part of a multidimensional array to a string</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAOLK0"><br><div><strong>byVal arr</strong>
												: </div>
<div><strong> seperator</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: seperator between the array-fields</div>
<div><strong> dimension</strong><span class="type">
													(
														<span class="type">int</span> 
													)
													</span>
												: the dimension index in the array -&gt; e.g. you have an
array of the size (5, 2) -&gt; with dimension 2 you get the array fields
(0, 2), (1, 2), ..., (4, 2) as the string object, savvy ?</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											concated array</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDA45J0" onclick="toggle('mdetails_5IDA45J0')">nullIfEmpty
										(
										 value 
										)
									</a></div>
<div class="mDesc">returns null if the input is empty.</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDA45J0"><br><div><strong> value</strong><span class="type">
													(
														<span class="type">variant</span> 
													)
													</span>
												: the value you are dealing with</div>
<div><strong>Return </strong>
											(
											<span class="type">variant</span> 
											) :
											null if the value is empty, otherwise the value itself</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDABXJ0" onclick="toggle('mdetails_5IDABXJ0')">padLeft
										(
										 value totalLength paddingChar 
										)
									</a></div>
<div class="mDesc">right-aligns a given value by padding left a given character to a totalsize</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDABXJ0">example: input: 22 -&gt; output: 00022 (padded to total length of 5 with the paddingchar 0)<br><br><div><strong> value</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the value which should be aligned right</div>
<div><strong> totalLength</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: whats the total Length of the result string</div>
<div><strong> paddingChar</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the char which is taken for padding</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											right aligned string.</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDASYJ0" onclick="toggle('mdetails_5IDASYJ0')">padRight
										(
										 value totalLength paddingChar 
										)
									</a></div>
<div class="mDesc">left-aligns a given value by padding right a given character to a totalsize</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDASYJ0">example: input: 22 -&gt; output: 22000 (padded to total length of 5 with the paddingchar 0)<br><br><div><strong> value</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the value which should be aligned left</div>
<div><strong> totalLength</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: whats the total Length of the result string</div>
<div><strong> paddingChar</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the char which is taken for padding</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											left aligned string.</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAZTJ0" onclick="toggle('mdetails_5IDAZTJ0')">parse
										(
										 value alternative 
										)
									</a></div>
<div class="mDesc">tries to parse a given value into the datatype of the alternative. If it cannot be parsed
then the alternative is passed through</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAZTJ0">it ALWAYS returns the type of the alternative<br><br><div><strong> value</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: value which should be parsed</div>
<div><strong> alternative</strong><span class="type">
													(
														<span class="type">variant</span> 
													)
													</span>
												: alternative value if converting is not possible
- if a float value is needed then use a comma. e.g. 0.0</div>
<div><strong>Return </strong>
											(
											<span class="type">variant</span> 
											) :
											the string parsed into the alternative type or the alternative itself</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDADEK0" onclick="toggle('mdetails_5IDADEK0')">shorten
										(
										 str maxChars overflowString 
										)
									</a></div>
<div class="mDesc">shortens a string and adds a custom string at the end if string is longer than a given value.</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDADEK0"><br><div><strong>byVal str</strong>
												: </div>
<div><strong> maxChars</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: whats the maximum allowed length of chars</div>
<div><strong> overflowString</strong><span class="type">
													(
														<span class="type">int</span> 
													)
													</span>
												: what string should be added at the end of the string if it has been cutted</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											cutted string</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDARFK0" onclick="toggle('mdetails_5IDARFK0')">splitValue
										(
										 stringToSplit delimiter returnIndex 
										)
									</a></div>
<div class="mDesc">splits a string and returns a specified field of the array</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDARFK0">it uses the split function but immediately returns you the field you want.<br><br><div><strong> stringToSplit</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the string you want to split</div>
<div><strong> delimiter</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: whats the delimiter for splitting</div>
<div><strong> returnIndex</strong><span class="type">
													(
														<span class="type">int</span> 
													)
													</span>
												: what index should be returned after spliting?. -1 = get the last index</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											string content for the wanted field of the array</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDA00J0" onclick="toggle('mdetails_5IDA00J0')">SQLSafe
										(
										 value 
										)
									</a></div>
<div class="mDesc">makes a given string safe for the use within sql statements</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDA00J0">e.g. if its necessary to pass through an user input directly into a sql-query<br><br><div><strong> value</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the value which should be made "safe"</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											safe value. e.g. ' are escaped with '', etc.</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDA2MK0" onclick="toggle('mdetails_5IDA2MK0')">startsWith
										(
										 str chars 
										)
									</a></div>
<div class="mDesc">Checks if the string begins with ...</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDA2MK0"><br><div><strong>byVal str</strong>
												: </div>
<div><strong> chars</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: the compare char/string</div>
<div><strong>Return </strong>
											(
											<span class="type">bool</span> 
											) :
											true if the two strings are equal</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDAVBK0" onclick="toggle('mdetails_5IDAVBK0')">stripTags
										(
										 inputStr 
										)
									</a></div>
<div class="mDesc">removes all Tags from a given string</div>
<div style="display:none" class="mdetails alwaysPrint" id="mdetails_5IDAVBK0">Tags are defined as string-parts surrounded by a &lt; and a &gt;. example: &lt;sample&gt;<br><br><div><strong> inputStr</strong><span class="type">
													(
														<span class="type">string</span> 
													)
													</span>
												: string where the Tags should be removed</div>
<div><strong>Return </strong>
											(
											<span class="type">string</span> 
											) :
											the input-String without any Tags</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mName"><a href="#method_IDARUK0" onclick="toggle('mdetails_5IDARUK0')">swapCase
										(
										 str 
										)
									</a></div>
<div class="mDesc">Swaps the Case of a String

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -