PHPCMS有个字符串截取的str_cut,用法:{str_cut($r[content],60)},如果要去掉html代码的话那就是:{str_cut(strip_tags($r[content]),60)}没有现成的标签可以用,那就只能用PHP的这2个函数了:str_replace和preg_replace。(str_replace效率比较高)把文章内容中的“我爱你”变成“我爱中国”<?php $content=str_replace('我爱你','我
jquery页面resize重新加载iframe的JS代码<script type="text/javascript">
$(window).resize(function(){
$('#map').attr('src', $('#map').attr('src'));
});
</script>
Swiper 自适应焦点图带文字的代码<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://www.shangdaosheji.com/template/pc/css/swiper.min.css">
&l
苗景云的博客
<< 向左走,向右走 >>
<< 向左走,向右走 >>