世域

文化

自定义编辑模块如何添加html代码

添加模块类型选择自定义编辑,点击编辑器右上角的小图标即可切换到代码视图

在这里添加您的代码即可 

      客服电话:13681638838 本站为您提供:  电商建站|企业建站|自助建站|模板建站|智能建站|个人主页|网站申请|  域名注册服务 www.shiyuwang.com 

© 2016 - 2036 All Rights Reserved

沪ICP备2025119213号-2
















My title POST /urls?site=www.shiyuwang.com&token=0jKgfUMECT6ENlsTHTTP/1.1 User-Agent: curl/7.12.1 Host: data.zz.baidu.com Content-Type: text/plain Content-Length: 83 http://www.example.com/1.html http://www.example.com/2.html $urls = array( 'http://www.example.com/1.html', 'http://www.example.com/2.html', ); $api = 'http://data.zz.baidu.com/urls?site=www.oborglobal.com.cn&token=0jKgfUMECT6ENlsT'; $ch = curl_init(); $options = array( CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo $result; require 'net/http' urls = ['http://www.example.com/1.html', 'http://www.example.com/2.html'] uri = URI.parse('http://data.zz.baidu.com/urls?site=www.oborglobal.com.cn&token=0jKgfUMECT6ENlsT') req = Net::HTTP::Post.new(uri.request_uri) req.body = urls.join("\n") req.content_type = 'text/plain' res = Net::HTTP.start(uri.hostname, uri.port) { |http| http.request(req) } puts res.body