Adobe Dreamweaver API Reference CS5 Manual do Utilizador Página 301

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 533
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 300
296
DREAMWEAVER API REFERENCE
Document
Last updated 8/27/2013
dreamweaver.doURLEncoding()
Availability
Dreamweaver 1.
Description
Takes a string and returns a URL-encoded string by replacing all the spaces and special characters with specified
entities.
Arguments
stringToConvert
• The stringToConvert argument is a string that contains the unencoded URL that the function encodes.
Returns
A URL-encoded string.
Example
The following example shows the URL.value for "My URL-encoded string":
var URL = dw.doURLEncoding(theURL.value);
returns "My%20URL-encoded%20string"
dreamweaver.getTokens()
Availability
Dreamweaver 1.
Description
Accepts a string and splits it into tokens.
Arguments
searchString, separatorCharacters
• The searchString argument is the string to separate into tokens.
• The separatorCharacters argument is the character or characters that signifies the end of a token. Separator
characters in quoted strings are ignored. Any white-space characters that occur in
separatorCharacters (such as
tabs) are treated as separator characters, as if they are explicitly specified. Two or more consecutive white space
characters are treated as a single separator.
Returns
An array of token strings.
Example
The following call to the dw.getTokens() function returns the tokens that come after it:
dreamweaver.getTokens('foo("my arg1", 34)', '(),')
• foo
Vista de página 300
1 2 ... 296 297 298 299 300 301 302 303 304 305 306 ... 532 533

Comentários a estes Manuais

Sem comentários