If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# compiled output | |
/dist | |
/tmp | |
/out-tsc | |
# Runtime data | |
pids | |
*.pid |
var _wr = function(type) { | |
var orig = history[type]; | |
return function() { | |
var rv = orig.apply(this, arguments); | |
var e = new Event(type); | |
e.arguments = arguments; | |
window.dispatchEvent(e); | |
return rv; | |
}; | |
}; |
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the build
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
git fetch --prune origin "+refs/tags/*:refs/tags/*" |
str1 = "http://www.google.tw/search?q=中文"; | |
obj = { | |
get a(){return '1';}, | |
set b(value){this.c = value;}, | |
c:1 | |
}; | |
class Cls{ | |
constructor(name){ | |
console.log("hello",name); | |
if (typeof(new.target)==='function') |