隐式类型转换 1. isNaN()判断数据类型是不是NaN 返回值为boolean,执行过程中是将数据放到number方法中 isNaN('123'); // 结果:false 2. ++ -- +、-(一元正负运算符) var a = 10; console.log(-a); //结果:-10; ...
分类:
Web程序 时间:
2021-05-24 15:52:51
阅读次数:
0
数据库配置请根据自己的数据库文件来修改。 <?php header('Content-type:text/html;charset=utf-8');define('DB_HOST','localhost');define('DB_USER','数据库用户名');define('DB_PASSWORD ...
分类:
其他好文 时间:
2021-05-24 15:10:20
阅读次数:
0
往期周报汇总地址:http://www.armbbs.cn/forum.php?mod=forumdisplay&fid=12&filter=typeid&typeid=104 1、Arduino为STM32H7做的开源工控底板 原理图是开源的,大家有兴趣看看有没有值得借鉴的地方。 这个底板是为他们 ...
分类:
其他好文 时间:
2021-05-24 15:04:54
阅读次数:
0
第一步:将下载的源码包上传到你的网站根目录下面;打开网站如果出现Dir ,把install_lock.txt删掉,再把有.bak的重命名删除即可。 第二步:打开浏览器 输入http://你的网址/install/index.php 当打开安装页面的时候,你就会看到以下页面 如 果没有出现该页面,而是 ...
分类:
其他好文 时间:
2021-05-24 14:49:41
阅读次数:
0
c语言中按位逻辑运算符、位移运算符 #include <stdio.h> int count_bits(unsigned x) { int bits = 0; while(x) { if(x & 1U) bits++; x >>= 1; } return bits; } int int_bits(v ...
分类:
编程语言 时间:
2021-05-24 14:42:05
阅读次数:
0
c语言中按位逻辑运算符、位移运算符 #include <stdio.h> int count_bits(unsigned x) { int bits = 0; while(x) { if(x & 1U) bits++; x >>= 1; } return bits; } int int_bits(v ...
分类:
编程语言 时间:
2021-05-24 14:41:08
阅读次数:
0
<?php class A{ function index (){ echo '我是A的index'; } } class B{ function index (){ echo '我是B的index'; } } class C{ function index (){ echo '我是C的index' ...
分类:
Web程序 时间:
2021-05-24 14:24:42
阅读次数:
0
static::、self::、new self()、new static() <?php class Father{ protected static $name = "大头"; public static function father_self(){ echo self::$name."\n" ...
分类:
其他好文 时间:
2021-05-24 14:21:29
阅读次数:
0
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:
Web程序 时间:
2021-05-24 13:36:59
阅读次数:
0
C语言(sizeof&&strlen) sizeof(单目运算符):计算变量或变量类型占的字节数 sizeof求数组长度:sizeof(arr)/sizeof(arr[0]) 变量类型 字节数 短整型 2 整形 4 长整型 4 单精度浮点型 4 双精度浮点型 8 字符类型 1 指针 4或8 示例: ...
分类:
其他好文 时间:
2021-05-24 13:30:12
阅读次数:
0