摘要: 截取master_major前六位 更新到master_major_code UPDATE special_teacher_new set master_major_code = (substring(master_major,1,6)) 扩展: update table set A = conca 阅读全文
posted @ 2021-04-01 18:36 刘俊涛的博客 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 代码如下: $.ajax({ type: "get", url: "{:url('Ajax/getUniqeUrl')}", dataType: "json", success: function (res) { $('#add_sp').attr('data-url',res); } }); $( 阅读全文
posted @ 2021-04-01 18:36 刘俊涛的博客 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 如何限制域名访问?白名单机制 <?php $whriteList = [ 'a.xxxx.cn', 'b.xxxx.cn' ]; $domian = $_SERVER['HTTP_HOST']; //trim($_SERVER['SERVER_NAME']) //$domian=$_SERVER[ 阅读全文
posted @ 2021-04-01 18:34 刘俊涛的博客 阅读(455) 评论(0) 推荐(0) 编辑