You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@js.native
@JSGlobalclassFormData(form: HTMLFormElement= js.native) extends js.Object {
/** Appends a key/value pair to the FormData object. */defappend(name: String, value: String|Blob, blobName: String= js.native):Unit= js.native
/** Deletes a key/value pair from the FormData object. */defdelete(name: String):Unit= js.native
/** Returns an iterator that iterates through all key/value pairs contained in the FormData. */defentries():Iterator[js.Tuple2[String, String|Blob]] = js.native
/** Returns the first value associated with a given key from within a FormData object. */defget(name: String):String|Blob= js.native
/** Returns an array of all the values associated with a given key from within a FormData. */defgetAll(name: String): js.Array[String|Blob] = js.native
/** Returns whether a FormData object contains a certain key. */defhas(name: String):Boolean= js.native
/** Returns an iterator iterates through all keys of the key/value pairs contained in the FormData. */defkeys():Iterator[String] = js.native
/** Sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist. */defset(name: String, value: String|Blob, blobName: String= js.native):Unit= js.native
/** Returns an iterator that iterates through all values contained in the FormData. */defvalues():Iterator[String|Blob] = js.native
}
In js world ,
FormData Object have
append
andget
method,but scalajs FormData class has only
append
method,we need to add
get
method like this...ref.
scala-js-dom/dom/src/main/scala/org/scalajs/dom/FormData.scala
Line 18 in d157768
The text was updated successfully, but these errors were encountered: