摘要:1、function_exists function_exists(string)检测函数是否存在,string表示需要检测的函数名称(注意与property_exists,method_exists,class_exists); 2、forward_static_call 和 forward_st
阅读全文
10 2018 档案
摘要:1、axios的安装 npm安装:npm i axios --save; 使用cdn:<script src="https://unpkg.com/axios/dist/axios.min.js"></script> 2、axios的API的使用 a、get请求 axios.get('/get.ph
阅读全文
摘要:1、在vue的实例化对象中对vue的data进行操作,建议用vm.$data进行操作, vm.$watch('字段', function(newValue, oldValue){})可以对字段进行监听,但是注意,该方法对路径引用的数组或对象来说,newValue与oldValue两个值是一样的,注意
阅读全文
摘要:1、array_change_key_case array_change_key_case(array,case)函数将数组的所有的键都转换为大写字母或小写字母。array表示目标数组,case表示转成大写还是小写函数,CASE_LOWER默认表示转成小写也可以用0代替,CASE_UPPER表示转换
阅读全文
摘要:一、xss 攻击 1、url注入脚本攻击 2、存储型xss攻击 在动态生成的html中进行script注入,如留言版等注意在图片属性编辑的时候添加onerror可以执行脚本语言
阅读全文
摘要:1、动画流程 注意:到动画结束后这几个类的类名都会被移除,同时v-enter-to的状态与默认的状态一样但是v-leave-to的最后状态是display: none所以常常需要指定 <!doctype html><html lang="en"><head> <meta charset="UTF-8
阅读全文
摘要:1、json_encode 与 json_decode json_encode 把数组转化成字符串 json_encode(array) json_decode 把目标字符串转成数组json_decode(string,true),如果省略第二个参数,那么生成的是个对象 在处理ajax请求的时候,采
阅读全文
摘要:1、base64_encode 与 base64_decode base64_encode(string) 表示使用 MIME base64 对数据进行编码 base64_decode(string)表示对编码后的字符串进行解码 2、urlencode 与 urldecode(在使用低版本的浏览器时
阅读全文
摘要:1、class的对象绑定 2、class的数组绑定 3、style的对象绑定 4、style的数组绑定 5、通过委托事件绑定实现 通过methods里的方法,第一个传值是event,那么通过event.target 或者 event.currentTarget来操作DOM实现类的切换,可结合jque
阅读全文
摘要:1、vue router 的入门案例 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no,
阅读全文
摘要:1、addcslashes 2、addslashes 与 stripslashes 3、bin2hex与hex2bin函数 bin2hex:表示把ASCII码字符的字符串转成十六进制 hex2bin:是对bin2hex函数的反转 4、chunk_split chunk_split(string,le
阅读全文
摘要:1、声明报错的方法,以及相对应的页面 //把数据库的调用方法配置到请求中 server.use((req, res, next) => { //把数据库存入req中 req.db = db; //把报错方法存入res中 res.showError = code => { switch (code)
阅读全文

浙公网安备 33010602011771号