JavaScript 中的 this 是什么?

  • 如果这个函数是 function#bind 调用的结果,那么 this 指向的是传入 bind 的参数
  • 如果函数是以 foo.func() 形式调用的,那么 this 值为 foo
  • 如果是在严格模式下,this 将为 undefined
  • 否则,this 将是全局对象(浏览器环境里为 window
Read More

PHP解决表单过多而丢失的问题

当提交了个很大的表单时(变量内容超过1000个),有些变量服务器可能获取不到,这时候可以在 php.ini 文件中修改 max_input_vars 的值来解决,默认值是 1000

Read More

Welcome to Jekyll!

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve --watch, which launches a web server and auto-regenerates your site when a file is updated.

Read More