JavaScript新的ECS6标准部分语法
JavaScript

JavaScript新的ECS6标准部分语法

2108

1、let声明变量:let在循环(或函数)外与内声明的变量相互独立,互不影响,如:let i=0; for(let i=1;i<10;i++){     console.log(i); } ale

JS正则表达式中的"g"是什么意思,参数g的用法
JavaScript

JS正则表达式中的"g"是什么意思,参数g的用法

586

为了解答“正则表达式(/[^0-9]/g,'')中的"/g"是什么意思?”这个问题,也为了能够便于大家对正则表达式有一个更为综合和深刻的认识,爱代码将一些关键点和容易犯糊涂的地方再系统总结一下。总结1:附件参数g的用法 表达式加上参数

JS实现禁止页面后退(用于订单结算页面)
JavaScript

JS实现禁止页面后退(用于订单结算页面)

742

最近写一个项目的订单功能时想到好多商城的订单页面是不允许后退的,经过一番折腾(度娘孤狗搜狗啥的,你懂得),终于找到个可行的,这现在网上的坑也是真不少,大多都不能用,要不就是驴唇不对马嘴;现在把能用的这个方法分享下,代码如下:<script>  &

深入理解javascript中的自调用函数(function(){})()
JavaScript

深入理解javascript中的自调用函数(function(){})()

727

javascript和其他编程语言相比比较随意,所以javascript代码中充满各种奇葩的写法,有时雾里看花,当然,能理解各型各色的写法也是对javascript语言特性更进一步的深入理解。( function(){…} )()和( function (){…} ()

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 81: file_put_contents(): Only 0 of 277 bytes written, possibly out of free disk space

  1. in Filesystem.php line 81
  2. at HandleExceptions->handleError('2', 'file_put_contents(): Only 0 of 277 bytes written, possibly out of free disk space', '/data/home/qxu1649280102/htdocs/local/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', '81', array('path' => '/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/39aee3993405aef5962141104b7f68bd03cbfd45', 'contents' => 'a:4:{s:6:"_token";s:40:"i9kgR5WqnkOvwHskAupwKrStEEHGbzJsDz3lb8ud";s:9:"_previous";a:1:{s:3:"url";s:40:"http://www.icodes.cc/category/javascript";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542589820;s:1:"c";i:1542589820;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/39aee3993405aef5962141104b7f68bd03cbfd45', 'a:4:{s:6:"_token";s:40:"i9kgR5WqnkOvwHskAupwKrStEEHGbzJsDz3lb8ud";s:9:"_previous";a:1:{s:3:"url";s:40:"http://www.icodes.cc/category/javascript";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542589820;s:1:"c";i:1542589820;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', '2') in Filesystem.php line 81
  4. at Filesystem->put('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/39aee3993405aef5962141104b7f68bd03cbfd45', 'a:4:{s:6:"_token";s:40:"i9kgR5WqnkOvwHskAupwKrStEEHGbzJsDz3lb8ud";s:9:"_previous";a:1:{s:3:"url";s:40:"http://www.icodes.cc/category/javascript";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542589820;s:1:"c";i:1542589820;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('39aee3993405aef5962141104b7f68bd03cbfd45', 'a:4:{s:6:"_token";s:40:"i9kgR5WqnkOvwHskAupwKrStEEHGbzJsDz3lb8ud";s:9:"_previous";a:1:{s:3:"url";s:40:"http://www.icodes.cc/category/javascript";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542589820;s:1:"c";i:1542589820;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 262
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 145
  8. at Kernel->terminate(object(Request), object(Response)) in index.php line 60