Skip to content

Instantly share code, notes, and snippets.

View ycr6708536's full-sized avatar
🌴
On vacation

ice ycr6708536

🌴
On vacation
  • 北京
  • 13:16 (UTC -12:00)
View GitHub Profile
RequestBase.prototype.set = function(field, val) {
if (isObject(field)) {
for (const key in field) {
if (Object.prototype.hasOwnProperty.call(field, key))
this.set(key, field[key]);
}
return this;
}
@ycr6708536
ycr6708536 / .jsbeautifyrc
Created May 4, 2019 07:57 — forked from wzup/.jsbeautifyrc
.jsbeautifyrc file example
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],