- 博客(20)
- 资源 (2)
- 收藏
- 关注
原创 PHP CURL调用google翻译黑接口
function curl_file_get_contents($durl){ $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($ch, CURLOPT_TIMEOUT ,300); curl_setopt($ch, CURLOPT_DNS_CACHE_.
2022-04-26 18:49:41
301
原创 PHP关键词词频检测
<html><!-- <meta http-equiv="content-type" content="text/html; charset=Shift_JIS" /> --><style>td{ background-color:#CF6; width:100px; margin:5px;}</style><body><meta charset="UTF-8" /><!-- <met.
2022-04-26 18:14:11
268
原创 PHP CURL采集
php采集神器cURL使用方法详解 - phpStudy上面是别人的CURL介绍,下面是自己写好的方法 function curl_file_get_contents($durl){ $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($ch, CURLOP
2022-04-25 00:13:45
316
原创 原生JS在DIV下添加label标签,label里面再添加input
原生JS动态在创建一个label然后在里面再添加一个font,最后在添加到指定id的div里面
2022-04-08 23:32:41
4004
原创 PHP DeepL翻译API
DeepL的翻译效果比google baidu 有道 必应强很多,目前只有科大讯飞的翻译可以和它比,因为公司自己是跨境公司,经常翻译外国人的语句。只有这俩比较OK。但是科大的翻译又好贵,DeepL的比较划算function DeepL($value,$auth_key,$target){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.deepl.com/v1/translate'); curl_s
2022-04-02 23:23:56
3030
1
原创 PHP科大讯飞翻译API接口接入
<?php/** * 机器翻译 WebAPI 接口调用示例 * 运行前:请先填写Appid、APIKey、APISecret * * 1.接口文档(必看):https://www.xfyun.cn/doc/nlp/xftrans/API.html * 2.错误码链接:https://www.xfyun.cn/document/error-code (错误码code为5位数字) * @author iflytek */// ****************************.
2022-04-02 23:15:51
1764
1
原创 Google官方navigation drawer详细讲解
稍微研究了下谷歌侧滑栏官方的侧滑栏这边给大家讲解它的具体结构显示Activity_main的xml代码xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/r
2016-12-22 13:15:07
684
原创 fragment使用replace切换到其他fragment中获取findFragmentById为null
findFragmentById这个方法功能很强大可以获取到指定fragment的实例并对其进行操作,但是今天碰到一个问题写了三个button切换并设置了一个静态的fragment,刚进去看到的是默认的fragment按下了其他button切换过去在切换回来使用findFragmentById就会出现null的问题,先贴代码package com.example.my_qqfragment
2016-12-17 19:15:19
951
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人