![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php技术 备忘
文章平均质量分 57
dyfvicture
blog做平时积累只用,看到的好文章,好技术,拿到我家,以备不时之需...
展开
-
php javascript 中文 编码
项目过程中,突然发现,中文在get方式传值有可能会有问题,传过来的奇数个中文可能不是想要得到的,google一下,发现可以用编码方式解决。 页面代码:var a = encodeURI("电影"); alert(a);var b = decodeURI(a);alert(b)window.location.href="test.php?act=c&c=" + a;原创 2008-10-09 14:22:00 · 903 阅读 · 0 评论 -
php中引用另一个类中常量问题
在一个类中定义了常量,在另一个类中引用,这个类中require_once了常量文件,但是使用的时候会报错: Access to undeclared static property: constEquip::$name 常量类中: class constEquip{ const E1011 = 名称1; } 引用类中: class test{ require_once("cache/原创 2008-10-13 21:00:00 · 2409 阅读 · 1 评论