22 篇
建站知识总结与分享
搜索“string”
phpExcel导入提示iconv(): Detected an illegal character in input string
web 0 0
148 0 2024-03-11 ThinkPHP5.1
phpExcel导入提示iconv(): Detected an illegal character in input string 用phpExcel导出excel文件,再导出,结果出错 但是手动创建的excel导入,不会提示这个错误 为什么会出错呢? 打印$from,$to,$value看看是什么...
<b>Deprecated</b>: Array and string offset access syntax with curly braces is deprecated in
taotaoit 0 0
305 0 2023-11-01 PHP
Uncaught transport.js/parseResult() error: can't parse to JSON. <br /> <b>Deprecated</b>:  Array and string offset access syntax w...
PHP simplexml_load_string() 函数
taotaoit 0 0
454 0 2023-07-17 PHP
simplexml_load_string() 函数转换形式良好的 XML 字符串为 SimpleXMLElement 对象。 https://www.runoob.com/php/func-simplexml-load-string.html <?php $note=<<<XML <n...
syntax error, unexpected 'Empty' (T_EMPTY), expecting identifier (T_STRING)
taotaoit 0 0
522 0 2023-06-28 ThinkPHP6
tp6控制器命名为Empty,结果提示错误 syntax error, unexpected 'Empty' (T_EMPTY), expecting identifier (T_STRING) 翻译:语法错误,意外的“Empty”(T_Empty),应为标识符(T_STRING) Empty 是关键字,不可以拿来...
php怎么将数据强转为字符串类型
web 0 0
719 0 2022-11-30 PHP
php怎么将数据强转为字符串类型 三种方式,直接上代码, <?php $num = 123; $str = (string)$num; echo gettype($num) . '<br>'; // Integer echo gettype($str); // string echo '<br&...
javascript,数组转json,json转数组
web 0 0
719 0 2022-11-25 JavaScript
let fade = ["Vue.js","PHP"]; // 数组转json let json = JSON.stringify(fade); console.log(typeof json); // 判断类型 string console.log(json); // ["Vue.js","PHP"] // jso...
vscode用户代码片段Invalid characters in string. Control characters must be escaped.
taotaoit 0 0
1506 0 2022-11-01 VSCode
vscode用户代码片段Invalid characters in string. Control characters must be escaped. 代码前面空格,我用tab键,提示有错误,但是可以正常使用。 后来改为两个空格,错误提示消失了。使用代码的时候,不是按两个空格算的,是按一个tab键算的
Array and string offset access syntax with curly braces is deprecated原因
web 0 0
922 0 2022-05-23 PHP
Array and string offset access syntax with curly braces is deprecated PHP7.4不再支持使用大括号访问数组以及字符串的偏移_PHP代码 php7.4不支持数组{}写法,统一为数组[] 解决办法: seq=(ord(value{0}) % $rule...
$_SERVER['REQUEST_URI']和$_SERVER['QUERY_STRING']区别
web 0 0
1053 0 2022-01-24 PHP
原标题:详解 $_SERVER 函数中QUERY_STRING和REQUEST_URI区别 区别: $_SERVER["QUERY_STRING"]  获取查询 语句,实例中可知,获取的是?后面的值 $_SERVER["REQUEST_URI"]   获取 http://localhost 后...
tp6 tpl_replace_string template.php改成view.php 定义JS、css路径
web 0 0
1287 0 2021-12-07 ThinkPHP6
return [ // 模板引擎类型使用Think 'type' => 'Think', // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法 'auto_rule' => 1, // 模板目录名 'view_di...
wordpress错误 Uncaught Error: Function name must be a string in /home/www/wwwroot/www.cqhqysm.com/wwwroot/wp-content/themes/PC050/admin/metaw.class.php:81
taotaoit 0 1
2077 0 2021-08-02 Wordpress
<b>Fatal error</b>:  Uncaught Error: Function name must be a string in /home/www/wwwroot/www.cqhqysm.com/wwwroot/wp-content/themes/PC050/admin/metaw.clas...
thinkphp5.1语法错误: unexpected 'Case' (T_CASE), expecting identifier (T_STRING)
web 0 0
2043 0 2021-03-17 ThinkPHP5.1
thinkphp5.1语法错误: unexpected 'Case' (T_CASE), expecting identifier (T_STRING) Case 是关键字,不可以拿来当控制器名
js怎样截取字符串后几位以及截取字符串前几位
web 0 0
1747 0 2021-01-28 JavaScript
//截取字符串前几位 var disName ='开心一族漂亮家园'; var shortName = disName.substring(0,5); console.log(shortName);//打印结果:开心一族漂 //截取字符串后几位 var disName ='开心一族漂亮家园'; var disLength = d...
js不要第一个字符
web 0 0
1454 0 2020-12-11 JavaScript
原标题:用js去掉字符串的第一个字符或者最后一个字符 stringObject.substring(start,stop) //截取的是开始与结束的字符串。 stringObject.substr(start,length) //截取的是开始与字符串长度。 var str = 'abc,def,hgi'; str = s...
thinkphp错误:syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING)
web 1 0
2743 0 2019-10-11 ThinkPHP
syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING) 出现这个错误的原因是,list是php的一个函数,系统冲突了,改成别的名字就可以了
iconv(): Detected an illegal character in input string的解决办法
web 0 0
3241 0 2019-08-01 PHP
使用 iconv("UTF-8", "GBK//IGNORE", $data); // 意思是将第一个参数utf-8编码转为第二个参数GBK编码 会报错 iconv(): Detected an illegal character in input string 改为 mb_convert_encoding($data,"GBK","UT...
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6401924 2611 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)