当前位置: 首页 > news >正文

自己做的网站如何链接到百度wordpress怎么用

自己做的网站如何链接到百度,wordpress怎么用,建设网站注册会员,做网站和优化的公司1、获取文件二进制数据#xff0c;这里只做示例#xff0c;例如element-ui中文件上传的beforeUpload方法#xff0c;返回的file对象#xff0c;然后使用FileReader对其进行转换#xff0c;再进行后续判断 function beforeUpload(file: File) { const reader new FileRe…1、获取文件二进制数据这里只做示例例如element-ui中文件上传的beforeUpload方法返回的file对象然后使用FileReader对其进行转换再进行后续判断  function beforeUpload(file: File) { const reader new FileReader();reader.readAsArrayBuffer(file);reader.onload function (e: any) {// 等待file文件对象转换完成} } 2、将二进制数据处理为无符号整数也就是处理为字节 reader.onload function (e: any) {const btyes new Uint8Array(e.target.result)console.log(btyes);if (isUTF8(btyes)) {console.log(utf-8);} else {console.log(GBK);} } 3、isUTF8函数 // 判断文件编码格式的函数 function isUTF8(bytes) {var i 0;while (i bytes.length) {if ((// ASCIIbytes[i] 0x09 ||bytes[i] 0x0A ||bytes[i] 0x0D ||(0x20 bytes[i] bytes[i] 0x7E))) {i 1;continue;}if ((// non-overlong 2-byte(0xC2 bytes[i] bytes[i] 0xDF) (0x80 bytes[i 1] bytes[i 1] 0xBF))) {i 2;continue;}if ((// excluding overlongsbytes[i] 0xE0 (0xA0 bytes[i 1] bytes[i 1] 0xBF) (0x80 bytes[i 2] bytes[i 2] 0xBF)) ||(// straight 3-byte((0xE1 bytes[i] bytes[i] 0xEC) ||bytes[i] 0xEE ||bytes[i] 0xEF) (0x80 bytes[i 1] bytes[i 1] 0xBF) (0x80 bytes[i 2] bytes[i 2] 0xBF)) ||(// excluding surrogatesbytes[i] 0xED (0x80 bytes[i 1] bytes[i 1] 0x9F) (0x80 bytes[i 2] bytes[i 2] 0xBF))) {i 3;continue;}if ((// planes 1-3bytes[i] 0xF0 (0x90 bytes[i 1] bytes[i 1] 0xBF) (0x80 bytes[i 2] bytes[i 2] 0xBF) (0x80 bytes[i 3] bytes[i 3] 0xBF)) ||(// planes 4-15(0xF1 bytes[i] bytes[i] 0xF3) (0x80 bytes[i 1] bytes[i 1] 0xBF) (0x80 bytes[i 2] bytes[i 2] 0xBF) (0x80 bytes[i 3] bytes[i 3] 0xBF)) ||(// plane 16bytes[i] 0xF4 (0x80 bytes[i 1] bytes[i 1] 0x8F) (0x80 bytes[i 2] bytes[i 2] 0xBF) (0x80 bytes[i 3] bytes[i 3] 0xBF))) {i 4;continue;}return false;}return true; }
http://www.zqtcl.cn/news/387371/

相关文章:

  • 好的网站建设启示汕头网页设计网站方案
  • 深圳网站制作开发免费精准客户软件
  • 网站超链接用什么南宁行业平台开发公司
  • 注册门户网站襄樊seo快速排名
  • 优秀的手机网站iis 设置此网站的访问权限
  • 用nat123做自己的网站深圳市建设工程质量检测中心官网
  • 网上做衣服的网站废旧网站哪个做的最好
  • 网站开发设置网页端口wordpress 知识库
  • 网站建设的方法有四种开发一款新闻app需要多少钱
  • 成都网站建站公司2023年防疫新政策
  • 17做网店一样的网站十大互联网培训机构
  • 中企网络科技建站施工企业oa办公系统
  • 成都网站推广公司排名淘宝商家网站建设
  • 平台网站建设报价网站建设企业蛋糕
  • 上海创意网站建设电子商务毕业设计网站建设
  • 如何让网站打不开 解析wordpress pdf检索
  • 网站建设大作业感想台州企业网站模板建站
  • 淄博网站的优化上海营销网站建站公司
  • 长春网站建设硕成传媒长春电商网站建设哪家好
  • 舟山建设管理网站手表交易网站
  • 如何电话推销客户做网站沉浸式展厅搭建商
  • 重庆网站建设开发e福州官方网站
  • 网站怎么可以被收录广州网站建设全包
  • 网站备案期间如何采购需求网站建设
  • 东莞seo网站优化运营南通网站排名外包
  • 新能源网站建设唐山专业网站建设公司
  • 石基网站建设临沂网站优化哪家好
  • 用node.js可以做网站吗上海做网站 公司有哪些
  • 淄博网站建设详细策划一个域名解析多个网站
  • 无锡网站建设首选捷搜网站优化大赛