-
JS修改数组对象中的属性值
```javascript var content = [{"type":"add","state":false},{"type":"update","state":false},] for(var i=0;i...
-
CSS 显示两行后多余显示省略号
```css display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; ```
-
宝塔{CORS}跨域设置
```html add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'...
-
emlog 判断某个插件是否激活
```php $DB = Database::getInstance(); $sql = $DB->query("SELECT * FROM `" . DB_PREFIX . "options` WHERE `o...
-
css设置滚动条样式
```css /*滚动条样式*/ .cal_bottom::-webkit-scrollbar {/*滚动条整体样式*/ width:4px;/*高宽分别对应横竖滚动条的尺寸*/ height:4px; ...
-
uniapp动态设置标题titleNView
```javascript let pages = getCurrentPages() let page = pages[pages.length - 1]; let currentWebview = page...
-
JS时间戳转时间日期函数
```javascript resolvingDate(date){ if(!date){ return; } //date是传入的时间 var d = new Date(parseInt(date +...
-
css防止图片变形 该属性会对图片保留原始比列,多余的会被裁剪。
```css img{ width: 100px; height: 200px; object-fit: cover; } ```
-
PHP取字符串中间函数
```php function getSubstr($str, $leftStr, $rightStr){ $left = strpos($str, $leftStr); //echo '左边:'.$lef...