html
<a draggable="false">禁止拖拽</a>
css
.nowrap{word-break:keep-all;white-space:nowrap;}/*不换行*/
.box{box-sizing:border-box;}/*CSS容器宽度不受padding、border影响*/
JS
//禁止右键,禁止选中
document.oncontextmenu = new Function("event.returnValue=false;console.log('noright')"); document.onselectstart = new Function("event.returnValue=false;console.log('nosel')");
//替换
info=JSON.parse((info).replace(/(\r\n|\n|\r)/gm,"<br>"))
a=a.replace(/<br>/g,"\n")
php
$sql="SELECT SQL_CALC_FOUND_ROWS * FROM `a_logs` where id >0 limit 10,3";$result=$pdo->query($sql);
$total=$pdo->query("select found_rows()")->fetchColumn();
$datas=$result->fetchAll(PDO::FETCH_OBJ);//$data=$result->fetch();
echo "<pre>";var_dump($result);var_dump($total);var_dump($result->rowCount());var_dump($datas);
python
import hashlib import webbrowser key=hashlib.sha1((name+KEY+atime).encode('utf-8')).hexdigest()#SHA1摘要 webbrowser.open(url)#用浏览器打开链接
html.unescape( (json.loads(x,strict=False) ) #处理json和编码
陆续更新......