json的api接口如何直接调用到网页html 5C

json的api接口如何直接调用到网页html

这个是天气的api:http://t.weather.sojson.com/api/weather/city/101040100

我需要在网页上调用
http://www.jintiantianqi.com/qiwen.html?wid=101040100&t=1
这个是调用页面

我需要格式化成一个表格或者加在CSS变成一个天气预报的形式
请问大神怎么调用
我需要一个html页面代码
怎么让这个格式化后显示出来 效果如图
图片说明

怎么写 麻烦大神就写一个参数就行了 剩下的我自己写都可以

5个回答

http://www.weather.com.cn/weather15d/101190101.shtml
就是这个地址
你浏览器打开,f12,css自己copy就是了。

hurq11
hurq11 html怎么调用过来
一年多之前 回复
hurq11
hurq11 怎么调用过来呢 方便帮我写个代码吗
一年多之前 回复

你这个问题,实质就是如何解析返回的JSON数据的问题。
具体如何解析,还要根据你的实际情况,比如你是否用了JQ?如果有,JQ有提供的解析方法。
没有用JQ,也有不同的方法,比如用字串函数(或辅以正则表达式)去提取信息,或者EVAL成JSON对象,或者引入专门的JSON解析JS脚本。
根据你自己的情况,判断一下想采取哪种方式,然后把问题细化成关键点再搜索一下相关具体方法就行了。
当然,最好也别忘了去看看你所用的API有没有提供配套的解析方法,如果有,最好使用配套方法,既方便又避免可能某些地方不兼容

图片说明
显示的效果像这样
大神只要贴代码 效果我怎么调整

自己解析用spring的 restTemplate.getforobject 简单又好用!

Json解析下,然后CSS填入对应的Json字段值不就行了。。。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在JSON API调用上禁用CSRF

<div class="post-text" itemprop="text"> <p>I have a website project. It uses Go and the Gorilla and it's CSRF packages to protect against CSRF. I also have a JSON API that authenticates using a JWT like token provider (internal), so a user must authenticate with that before issuing a JSON request each time. So the CSRF is not an issue on the JSON side. At least I don't think so.</p> <p>Here's my code, where I am using a NewRouter for web Paths, and a Subrouter for the /api/v1/[endpoint]s. If I call a JSON endpoint that does a POST, the CSRF is engaged and I get a Forbidden - CSRF token invalid. I was under the assume, that perhaps a Sub Router would not have the middleware for the CSRF check associated with.</p> <pre><code>router := mux.NewRouter().StrictSlash(false) router.Path("/").HandlerFunc(myApp.IndexHandler).Methods("GET") apiRouter := router.PathPrefix("/api").Subrouter() apiRouter.Path("/dosomething").HandlerFunc(myApp.DoSomethingAPIHandler).Methods("POST", "OPTIONS") http.ListenAndServe(":8000", csrf.Protect( []byte("my-long-key-here-redacted"), csrf.Secure(false), // Set to false as we offload SSL elsewhere )(router))) </code></pre> <p>Question: How do I get my API to work with or without CSRF protection? Obviously, the web paths will need to be protected to protect form posts.</p> </div>

在HTML表中显示API中的数据

<div class="post-text" itemprop="text"> <p>I'm extracting data from two different API calls and displaying in a column.</p> <p>The first loop (images column) is calling the JSON data from API and displaying images in first column, the second loop (other column) is displaying user number of battles data in remaining columns, like so:</p> <pre><code>Currently it looks like this: | images | other | |__________|_________| | 1 | | | 2 | | | 3 | | | 4 | | | 5 | | | 6 | | | 7 | | | 8 | | | | 1 | | | 2 | | | 3 | | | 4 | | | 5 | | | 6 | | | 7 | | | 8 | |__________|_________| What I want to accomplish is this: | images | other | |__________|_________| | 1 | 1 | | 2 | 2 | | 3 | 3 | | 4 | 4 | | 5 | 5 | | 6 | 6 | | 7 | 7 | | 8 | 8 | |__________|_________| </code></pre> <p>Here is my code (I left the API calls at top etc)</p> <pre><code> &lt;table class="table table-sm"&gt; &lt;thead class="thead-dark"&gt; &lt;tr&gt; &lt;th&gt;Tank&lt;/th&gt; &lt;th&gt;Battles&lt;/th&gt; &lt;th&gt;Wins&lt;/th&gt; &lt;th&gt;Losses&lt;/th&gt; &lt;th&gt;Kills&lt;/th&gt; &lt;th&gt;Mastery class&lt;/th&gt; &lt;th&gt;Survived matches&lt;/th&gt; &lt;th&gt;XP gained&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php foreach ($tanks['data'] as $key =&gt; $value) { ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?php echo '&lt;img src="'.$value['images']['big_icon'].'"/&gt;'; ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;?php foreach ($tanks_stats['data']['1076056102'] as $key =&gt; $value) { ?&gt; &lt;td&gt;&lt;?php echo $value['all']['battles']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $value['all']['wins']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $value['all']['losses']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $value['all']['frags']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $value['mark_of_mastery']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $value['all']['survived_battles']; ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo number_format($value['all']['xp']); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>At the moment, it displays all the tank images in the first column, then the remaining data is displayed AFTER all the tank images have populated.</p> <p>What I am trying to do is get the images in first column to display next to the data column. The problem i'm having is because they are two different API calls I can't get them in same loop.</p> <p><a href="https://i.stack.imgur.com/7f6Vw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7f6Vw.png" alt="enter image description here"></a></p> </div>

前端如何调用后端接口

我是翻了几天百度都找不到想要的答案 萌新请求大佬帮忙.用简单的方式在一个jsp页面调用多个后端接口,返回json值. 使用spring mvc框架,浏览器调用url就会返回json数据,我想整合到jsp页面上. 不用url跳转的方式调用得到json,这样我就可以在一个页面用多个后端接口对接了. 在网上学习课程都是一个页面查一个后端接口的,好懵逼. 我是学后端的学渣,想自己做个网页面试用,不会前端技术.拿到模版之后不知道怎么对接前后端.

前端页面一个div块调用接口用什么来实现比较好

前端页面中以一个部分需要调用别人提供的接口,返回json格式的数组,暂时想用ajax 来发送请求获取数据然后拼接成字符串,不知道有没有什么更好的方法

百度地图api,返回json转换java对象问题

像这种 { 里面 [ 里面包含{ 的,怎么转为java 对象,然后使用里面{里面的 { "status":0, "message":"ok", "total":205, "results":[ { "name":"香辣虾(科大耍都店)", "location":{ "lat":37.978677, "lng":114.525517 }, "address":"裕翔街大学商城耍都美食广场内(近科大新校区南门)", "telephone":"15710336006", "detail":1, "uid":"772e5c4e280b2245430245b4", "detail_info":{ "distance":158, "tag":"美食;中餐厅", "type":"cater", "detail_url":"http://api.map.baidu.com/place/detail?uid=772e5c4e280b2245430245b4&output=html&source=placeapi_v2", "price":"15.0", "overall_rating":"4.7", "service_rating":"3.65", "environment_rating":"3.65", "image_num":"24", "comment_num":"24", "di_review_keyword":[ ] } }, { "name":"夏天の鸡排店(科大新校区店)", "location":{ "lat":37.980111, "lng":114.527799 }, "address":"科大新校区南门市场", "telephone":"13223486720,13223486720", "detail":1, "uid":"210b360122fb7257a0acc4be", "detail_info":{ "distance":156, "tag":"美食;小吃快餐店", "type":"cater", "detail_url":"http://api.map.baidu.com/place/detail?uid=210b360122fb7257a0acc4be&output=html&source=placeapi_v2", "price":"10.0", "overall_rating":"4.9", "service_rating":"3.7", "environment_rating":"3.65", "image_num":"37", "groupon_num":"1", "comment_num":"49", "di_review_keyword":[ ] } },

求教。java接口与前台html对接问题

后台是另外一个公司写的,通过mvc返回一个json字符串,我们负责前台,目前只有html页面。。。如何对接???我通过ajax实现,url:‘http://123.123.12.12/api/api', 这样???还有就是需要我向后台传登录后的用户id。但是,那是html页面。我怎么获取这个用户id去??我要换成jsp么???哪位大神指点指点?

使用Laravel 4以HTML格式显示JSON数据

<div class="post-text" itemprop="text"> <p>Please help me with my problem in displaying JSON data into my view.. </p> <p>my script is:</p> <pre><code> $('#supplierId').change(function(){ $.get("{{ url('api/dropdown')}}", { option: $(this).val() }, function(data) { var firstnameID = $('#firstnameID'); $.each(data, function(index, element) { firstnameID.val(element.first_name); }); }); }); </code></pre> <p>and my JSON reply is:</p> <pre><code>{"id":7,"first_name":"John","last_name":"Doe"} </code></pre> <p>the thing is when i tried to:</p> <pre><code>alert(element.first_name); </code></pre> <p>it says UNDEFINED, but when I:</p> <pre><code>alert(element); </code></pre> <p>it gives me the value of the last name which is Doe.. my question is how can I then access the other values like the ID and the first name..</p> <p>EDITED:</p> <p>this is my route:</p> <pre><code>Route::get('api/dropdown', function(){ $input = Input::get('option'); $supllier = Supplier::find($input); returnResponse::json($supllier-&gt;select(array('id','first_name','last_name')) -&gt;find($input)); }); </code></pre> <p>Please help me with this one, This is my first time using JSON so im a bit confuse on how this works. </p> <p>Best Regards -Melvn</p> </div>

用json的$.ajax接入阿里云的天气接口 url怎么写?

jquery-1.11.1.js:9631 XMLHttpRequest cannot load file:///F:/eclipse/workspace/a/src/main/webapp/http(s)://ali-weather.showap…ourData=0&needIndex=1&needMoreDay=1&callback=jsonpCallback&_=1501225356423. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. send @ jquery-1.11.1.js:9631 ajax @ jquery-1.11.1.js:9176 (anonymous) @ tianqi.js:2 fire @ jquery-1.11.1.js:3119 fireWith @ jquery-1.11.1.js:3231 ready @ jquery-1.11.1.js:3443 completed @ jquery-1.11.1.js:3474  ​我写的报这个错误 我用的阿里的天气接口网址是:https://market.aliyun.com/products/57096001/cmapi010812.html#sku=yuncode481200005

接口访问 URL直接输入浏览器地址返回正常数据,但httpCode一直是404

接口API:https://openapi.zhe800.com/doc/zhe800.order/zhe800.order.detail.get/index.html 浏览器地址栏直接输入URl ![图片说明](https://img-ask.csdn.net/upload/201707/24/1500883894_347167.png) ``` URL url = https://openapi.zhe800.com/api/erp/v2/orders/6181937746877.json; HttpURLConnection conn = (HttpURLConnection) url.openConnection(); if ((conn instanceof HttpsURLConnection)) { HttpsURLConnection connHttps = (HttpsURLConnection) conn; if (ignoreSSLCheck) { try { SSLContext ctx = SSLContext.getInstance("TLS"); ctx.init(null, new TrustManager[] { new TrustAllTrustManager() }, new SecureRandom()); connHttps.setSSLSocketFactory(ctx.getSocketFactory()); connHttps.setHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname,SSLSession session) { return true; } }); } catch (Exception e) { throw new IOException(e); } conn = connHttps; conn.setRequestMethod("get"); conn.setDoInput(true); conn.setDoOutput(true); conn.setRequestProperty("Host", url.getHost()); conn.setRequestProperty("User-Agent", "Top4Net"); conn.setRequestProperty("Content-Type", "multipart/related;charset=utf-8"); conn.setConnectTimeout(30000); return conn; int code = conn.getResponseCode(); ``` code 始终为404.。。

如何使用const列表显示json数据

<div class="post-text" itemprop="text"> <p>how to display json data over fire in but how to call it using (const list =) example like this</p> <pre class="lang-html prettyprint-override"><code>const list = [ { id: 1, name: 'June 1, 2018 - June 3, 2018', avatar_url: 'https://s3.amazonaws.com/uif…/faces/twitter/ladylexy/128.jpg', subtitle: 'Sick Leave 3 Days', image_status: require('../../assets/icon_double_check_gray.png') }, { id: 2, name: 'July 7, 2018 - August 3, 2018', avatar_url: 'https://s3.amazonaws.com/…/fa…/twitter/adhamdannaway/128.jpg', subtitle: 'Meeting Leave 9 Days', image_status: require('../../assets/icon_double_check_green.png') }, ] </code></pre> </div>

从https网站调用非https api url

<div class="post-text" itemprop="text"> <p>i am trying to call non-https api url from my https website, but it gives me error.</p> <p>jquery.js:9640 Mixed Content: The page at '<a href="https://example.com/" rel="nofollow">https://example.com/</a>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<a href="http://apiurl/imageapi.php" rel="nofollow">http://apiurl/imageapi.php</a>'. This request has been blocked; the content must be served over HTTPS.</p> <pre><code>$.ajax({ url: 'http://example.com/imageapi.php', method: 'post', data: formData, processData: false, contentType: false, dataType :'json', beforeSend: function() { jQuery('.bfd-dropfield-inner').html('Procession............'); }, success: function(response) { </code></pre> <p>how can i solve this issue</p> </div>

调用扫一扫接口scanQRCode 没有反应

我前端调用扫一扫接口,莫得反应是怎么回事,,获取签名什么的都成功了,,debug 也没用弹出信息 ``` $.ajax({ url: '请求签名的后台地址', method: "post", xhrFields: { withCredentials: true }, data: pageUrl,//获取当前页面路径 dataType: "json", cache: false,//第一次请求完毕之后,如果再次去请求,可以直接从缓存里面读取而不是再到服务器端读取 success: function(data) { console.log(data) console.log(pageUrl.url) console.log(data.nonceStr) // //alert(data.member.nickName); wx.config({ debug:true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,                                                            仅在pc端时才会打印。 appId: data.appID, // 必填,公众号的唯一标识 timestamp: data.timestamp, // 必填,生成签名的时间戳 nonceStr: data.nonceStr, // 必填,生成签名的随机串 signature: data.signature, // 必填,签名,见附录1 jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表, }); console.log(wx); wx.error(function(res){ alert("错误信息== " + res.errMsg); }); wx.ready(function(){ console.log("----------------------") wx.scanQRCode({ needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有 success: function (res) { var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果 alert(result); } }); }); } }); ```

调用一个新闻接口时,每次只有第一次请求时能获取到数据

我在使用http://apistore.baidu.com/apiworks/servicedetail/688.html 这个借口时碰到了一个问题,每次只有服务器重启第一次访问接口的时候能拿到数据,请问这是为什么?该如何解决?

求助:html只能在微信浏览器打开,调用微信接口问题?

大家好 ,新手请教两个个问题 1.网页上输入域名的时候 直接访问了public目录下面的index.html 没有访问index.php 这个是tp模块默认的设置么? 2.这个怎么设置的index.html只能在微信端打开,我应该怎么解除,让他在普通浏览器也能正常打开呢? 个人觉得原因:1.它直接通过index.html里的js调用了微信授权,需要把js里的微信授权取消。但是我没能找到js里微信授权在哪里。 下么是图片: ![图片说明](https://img-ask.csdn.net/upload/202003/22/1584857161_740465.jpg) ![图片说明](https://img-ask.csdn.net/upload/202003/22/1584856909_155952.png) 下么是其中一个js代码: 1.index.5d79cff.js ``` (function(e){function n(n){for(var a,i,s=n[0],u=n[1],c=n[2],l=0,d=[];l<s.length;l++)i=s[l],o[i]&&d.push(o[i][0]),o[i]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);g&&g(n);while(d.length)d.shift()();return r.push.apply(r,c||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,i=1;i<t.length;i++){var u=t[i];0!==o[u]&&(a=!1)}a&&(r.splice(n--,1),e=s(s.s=t[0]))}return e}var a={},o={index:0},r=[];function i(e){return s.p+"static/js/"+({"pages-aboutUs-aboutUs":"pages-aboutUs-aboutUs","pages-buyLesson-buyLesson":"pages-buyLesson-buyLesson","pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail":"pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail","pages-cargoDetail-cargoDetail":"pages-cargoDetail-cargoDetail","pages-questionDetail-questionDetail":"pages-questionDetail-questionDetail","pages-feedback-feedback":"pages-feedback-feedback","pages-login-login":"pages-login-login","pages-partiPost-partiPost":"pages-partiPost-partiPost","pages-payOrder-payOrder":"pages-payOrder-payOrder","pages-searchDetails-searchDetails":"pages-searchDetails-searchDetails","pages-tabbar-drycargo-drycargo":"pages-tabbar-drycargo-drycargo","pages-tabbar-mine-mine":"pages-tabbar-mine-mine","pages-tabbar-question-question":"pages-tabbar-question-question","pages-tabbar-release-release":"pages-tabbar-release-release","pages-tabbar-search-search":"pages-tabbar-search-search","pages-teacherDetail-teacherDetail":"pages-teacherDetail-teacherDetail","pages-userinfo-userinfo":"pages-userinfo-userinfo"}[e]||e)+"."+{"pages-aboutUs-aboutUs":"f00552b3","pages-buyLesson-buyLesson":"6bf6a2ae","pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail":"35e61b5d","pages-cargoDetail-cargoDetail":"9f2898d6","pages-questionDetail-questionDetail":"9c645e70","pages-feedback-feedback":"e2280327","pages-login-login":"d7b4ab6c","pages-partiPost-partiPost":"78de4437","pages-payOrder-payOrder":"8718e180","pages-searchDetails-searchDetails":"7710a11b","pages-tabbar-drycargo-drycargo":"1312f8dd","pages-tabbar-mine-mine":"f44636f9","pages-tabbar-question-question":"8d8629a7","pages-tabbar-release-release":"fdfe539f","pages-tabbar-search-search":"2c50eba0","pages-teacherDetail-teacherDetail":"65279f5c","pages-userinfo-userinfo":"38dd4057"}[e]+".js"}function s(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise(function(n,a){t=o[e]=[n,a]});n.push(t[2]=a);var r,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=i(e),r=function(n){u.onerror=u.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src,i=new Error("Loading chunk "+e+" failed.\n("+a+": "+r+")");i.type=a,i.request=r,t[1](i)}o[e]=void 0}};var c=setTimeout(function(){r({type:"timeout",target:u})},12e4);u.onerror=u.onload=r,document.head.appendChild(u)}return Promise.all(n)},s.m=e,s.c=a,s.d=function(e,n,t){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)s.d(t,a,function(n){return e[n]}.bind(null,a));return t},s.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="/",s.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],c=u.push.bind(u);u.push=n,u=u.slice();for(var l=0;l<u.length;l++)n(u[l]);var g=c;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("1e48")},"0538":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.mock=n.http=void 0;var o=a(t("795b")),r=a(t("cebc")),i=a(t("42e7")),s=new i.default;n.mock=s,s.setConfig(function(e){return e.baseUrl="https://www.fastmock.site/mock/09d86ed8a861337ae7da96bbb47bc39e/shoppage",e.header=(0,r.default)({},e.header),e}),s.interceptor.request(function(e,n){return e}),s.validateStatus=function(e){return 200===e},s.interceptor.response(function(e){if(1===e.data.error_code)return e.data},function(e){return e});var u=new i.default;n.http=u,u.setConfig(function(e){return e.baseUrl="http://xinghuo.com/index.php/index/",e.header=(0,r.default)({},e.header),e}),u.validateStatus=function(e){return 200===e},u.interceptor.response(function(e){return 200!==e.statusCode?o.default.reject(e):(1===e.data.code||(102===e.data.code?uni.reLaunch({url:"/pages/common/login/login"}):uni.showToast({title:e.data.msg||"加载中",icon:"none"})),o.default.resolve(e.data))},function(e){return e})},"0831":function(e,n,t){"use strict";t.r(n);var a=t("ac83"),o=t("1333");for(var r in o)"default"!==r&&function(e){t.d(n,e,function(){return o[e]})}(r);t("9578");var i,s=t("f0c5"),u=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},1333:function(e,n,t){"use strict";t.r(n);var a=t("bc27"),o=t.n(a);for(var r in a)"default"!==r&&function(e){t.d(n,e,function(){return a[e]})}(r);n["default"]=o.a},"1e48":function(e,n,t){"use strict";var a=t("e54b"),o=t("288e"),r=o(t("cebc"));t("cadf"),t("551c"),t("097d"),t("356c"),t("1c31"),t("921b");var i=o(t("e143")),s=o(t("0831")),u=o(t("48a2")),c=a(t("3322")),l=o(t("b90f"));i.default.config.productionTip=!1,i.default.prototype.$api=c,i.default.prototype.websiteUrl="http://xinghuo.tanfangzi.cn",i.default.prototype.getImgUrl=function(e){return this.websiteUrl+e},i.default.prototype.isLogin=function(e){var n=uni.getStorageSync("userInfo");return!!n&&n.token},i.default.prototype.$store=u.default,i.default.prototype.$api=c,i.default.prototype.$utils=l.default,s.default.mpType="app";var g=new i.default((0,r.default)({},s.default));g.$mount()},"279b":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={pages:{"pages/tabbar/search/search":{navigationBarTitleText:"搜索",navigationStyle:"custom"},"pages/login/login":{navigationBarTitleText:"登录",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"},"pages/tabbar/question/question":{navigationBarTitleText:"问答",navigationStyle:"custom"},"pages/tabbar/drycargo/drycargo":{navigationBarTitleText:"干货",navigationStyle:"custom"},"pages/tabbar/release/release":{navigationBarTitleText:"发布帖子",navigationStyle:"custom"},"pages/tabbar/mine/mine":{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"},"pages/searchDetails/searchDetails":{navigationBarTitleText:"搜索",navigationStyle:"custom"},"pages/cargoDetail/cargoDetail":{navigationBarTitleText:"干货详情",navigationStyle:"custom"},"pages/teacherDetail/teacherDetail":{navigationBarTitleText:"讲师详情",navigationStyle:"custom"},"pages/userinfo/userinfo":{navigationBarTitleText:"个人资料",navigationStyle:"custom"},"pages/aboutUs/aboutUs":{navigationBarTitleText:"关于我们",navigationStyle:"custom"},"pages/feedback/feedback":{navigationBarTitleText:"意见反馈",navigationStyle:"custom"},"pages/buyLesson/buyLesson":{navigationBarTitleText:"购买课程",navigationStyle:"custom"},"pages/partiPost/partiPost":{navigationBarTitleText:"参与帖子",navigationStyle:"custom"},"pages/questionDetail/questionDetail":{navigationBarTitleText:"帖子详情",navigationStyle:"custom"},"pages/payOrder/payOrder":{navigationBarTitleText:"支付",navigationStyle:"custom"}},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"}};n.default=a},3322:function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.go=i,n.usersave=n.topay=n.order=n.buy=n.purchase=n.openid=n.userinfo=n.suggestion=n.mydata=n.bannerpost=n.about=n.phone=n.comment=n.videodeta=n.video=n.issue=n.postdeta=n.searchvideo=n.post=n.banner=void 0;var o=a(t("f499")),r=t("0538");function i(e,n){n?(n=(0,o.default)(n),uni.navigateTo({url:"/pages/"+e+"/"+e+"?data="+n})):uni.navigateTo({url:"/pages/"+e+"/"+e})}var s=function(e){return r.http.post("banner/index",e||{})};n.banner=s;var u=function(e){return r.http.post("video/post",e||{})};n.post=u;var c=function(e){return r.http.post("video/search_video",e||{})};n.searchvideo=c;var l=function(e){return r.http.post("video/postdeta",e||{})};n.postdeta=l;var g=function(e){return r.http.post("video/issue",e||{})};n.issue=g;var d=function(e){return r.http.post("video/video",e||{})};n.video=d;var p=function(e){return r.http.post("video/videodeta",e||{})};n.videodeta=p;var f=function(e){return r.http.post("video/comment",e||{})};n.comment=f;var y=function(e){return r.http.post("banner/phone",e||{})};n.phone=y;var b=function(e){return r.http.post("banner/about",e||{})};n.about=b;var m=function(e){return r.http.post("banner/post",e||{})};n.bannerpost=m;var h=function(e){return r.http.post("banner/mydata",e||{})};n.mydata=h;var _=function(e){return r.http.post("banner/suggestion",e||{})};n.suggestion=_;var v=function(e){return r.http.post("banner/user_info",e||{})};n.userinfo=v;var C=function(e){return r.http.post("banner/openid",e||{})};n.openid=C;var T=function(e){return r.http.post("banner/purchase",e||{})};n.purchase=T;var S=function(e){return r.http.post("video/buy",e||{})};n.buy=S;var D=function(e){return r.http.post("video/order",e||{})};n.order=D;var x=function(e){return r.http.post("video/to_pay",e||{})};n.topay=x;var w=function(e){return r.http.post("banner/user_save",e||{})};n.usersave=w},"356c":function(e,n,t){"use strict";(function(e){var n=t("288e"),a=n(t("5176")),o=n(t("e143"));e["____14021FC____"]=!0,delete e["____14021FC____"],e.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},tabBar:{borderStyle:"black",backgroundColor:"#FFFFFF",color:"#333333",selectedColor:"#333333",list:[{pagePath:"pages/tabbar/search/search",iconPath:"static/tabbar/taba1.png",selectedIconPath:"static/tabbar/taba2.png",text:"搜索",redDot:!1,badge:""},{pagePath:"pages/tabbar/question/question",iconPath:"static/tabbar/tabb1.png",selectedIconPath:"static/tabbar/tabb2.png",text:"问答",redDot:!1,badge:""},{pagePath:"pages/tabbar/drycargo/drycargo",iconPath:"static/tabbar/tabc1.png",selectedIconPath:"static/tabbar/tabc2.png",text:"干货",redDot:!1,badge:""},{pagePath:"pages/tabbar/mine/mine",iconPath:"static/tabbar/tabd1.png",selectedIconPath:"static/tabbar/tabd2.png",text:"我的",redDot:!1,badge:""}]}},e.__uniConfig.router={mode:"hash",base:"/"},e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:3e3},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e3,connectSocket:6e3,uploadFile:6e3,downloadFile:6e3},e.__uniConfig.sdkConfigs={},e.__uniConfig.qqMapKey="XVXBZ-NDMC4-JOGUS-XGIEE-QVHDZ-AMFV2",e.__uniConfig.nvue={"flex-direction":"column"},o.default.component("pages-tabbar-search-search",function(e){var n={component:t.e("pages-tabbar-search-search").then(function(){return e(t("ef27"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-login-login",function(e){var n={component:t.e("pages-login-login").then(function(){return e(t("31d9"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-question-question",function(e){var n={component:t.e("pages-tabbar-question-question").then(function(){return e(t("3c6e"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-drycargo-drycargo",function(e){var n={component:t.e("pages-tabbar-drycargo-drycargo").then(function(){return e(t("3b16"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-release-release",function(e){var n={component:t.e("pages-tabbar-release-release").then(function(){return e(t("9932"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-mine-mine",function(e){var n={component:t.e("pages-tabbar-mine-mine").then(function(){return e(t("6d8f"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-searchDetails-searchDetails",function(e){var n={component:t.e("pages-searchDetails-searchDetails").then(function(){return e(t("4d92"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-cargoDetail-cargoDetail",function(e){var n={component:Promise.all([t.e("pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail"),t.e("pages-cargoDetail-cargoDetail")]).then(function(){return e(t("0c29"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-teacherDetail-teacherDetail",function(e){var n={component:t.e("pages-teacherDetail-teacherDetail").then(function(){return e(t("b00e"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-userinfo-userinfo",function(e){var n={component:t.e("pages-userinfo-userinfo").then(function(){return e(t("d13d"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-aboutUs-aboutUs",function(e){var n={component:t.e("pages-aboutUs-aboutUs").then(function(){return e(t("e582"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-feedback-feedback",function(e){var n={component:t.e("pages-feedback-feedback").then(function(){return e(t("b75c"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-buyLesson-buyLesson",function(e){var n={component:t.e("pages-buyLesson-buyLesson").then(function(){return e(t("c589"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-partiPost-partiPost",function(e){var n={component:t.e("pages-partiPost-partiPost").then(function(){return e(t("93e6"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-questionDetail-questionDetail",function(e){var n={component:Promise.all([t.e("pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail"),t.e("pages-questionDetail-questionDetail")]).then(function(){return e(t("0553"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-payOrder-payOrder",function(e){var n={component:t.e("pages-payOrder-payOrder").then(function(){return e(t("5404"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),e.__uniRoutes=[{path:"/",alias:"/pages/tabbar/search/search",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0},__uniConfig.globalStyle,{navigationBarTitleText:"搜索",navigationStyle:"custom"})},[e("pages-tabbar-search-search",{slot:"page"})])}},meta:{id:1,name:"pages-tabbar-search-search",isNVue:!1,pagePath:"pages/tabbar/search/search",isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,windowTop:0}},{path:"/pages/login/login",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"登录",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"})},[e("pages-login-login",{slot:"page"})])}},meta:{name:"pages-login-login",isNVue:!1,pagePath:"pages/login/login",windowTop:0}},{path:"/pages/tabbar/question/question",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:1},__uniConfig.globalStyle,{navigationBarTitleText:"问答",navigationStyle:"custom"})},[e("pages-tabbar-question-question",{slot:"page"})])}},meta:{id:2,name:"pages-tabbar-question-question",isNVue:!1,pagePath:"pages/tabbar/question/question",isQuit:!0,isTabBar:!0,tabBarIndex:1,windowTop:0}},{path:"/pages/tabbar/drycargo/drycargo",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:2},__uniConfig.globalStyle,{navigationBarTitleText:"干货",navigationStyle:"custom"})},[e("pages-tabbar-drycargo-drycargo",{slot:"page"})])}},meta:{id:3,name:"pages-tabbar-drycargo-drycargo",isNVue:!1,pagePath:"pages/tabbar/drycargo/drycargo",isQuit:!0,isTabBar:!0,tabBarIndex:2,windowTop:0}},{path:"/pages/tabbar/release/release",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"发布帖子",navigationStyle:"custom"})},[e("pages-tabbar-release-release",{slot:"page"})])}},meta:{name:"pages-tabbar-release-release",isNVue:!1,pagePath:"pages/tabbar/release/release",windowTop:0}},{path:"/pages/tabbar/mine/mine",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:3},__uniConfig.globalStyle,{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"})},[e("pages-tabbar-mine-mine",{slot:"page"})])}},meta:{id:4,name:"pages-tabbar-mine-mine",isNVue:!1,pagePath:"pages/tabbar/mine/mine",isQuit:!0,isTabBar:!0,tabBarIndex:3,windowTop:0}},{path:"/pages/searchDetails/searchDetails",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"搜索",navigationStyle:"custom"})},[e("pages-searchDetails-searchDetails",{slot:"page"})])}},meta:{name:"pages-searchDetails-searchDetails",isNVue:!1,pagePath:"pages/searchDetails/searchDetails",windowTop:0}},{path:"/pages/cargoDetail/cargoDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"干货详情",navigationStyle:"custom"})},[e("pages-cargoDetail-cargoDetail",{slot:"page"})])}},meta:{name:"pages-cargoDetail-cargoDetail",isNVue:!1,pagePath:"pages/cargoDetail/cargoDetail",windowTop:0}},{path:"/pages/teacherDetail/teacherDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"讲师详情",navigationStyle:"custom"})},[e("pages-teacherDetail-teacherDetail",{slot:"page"})])}},meta:{name:"pages-teacherDetail-teacherDetail",isNVue:!1,pagePath:"pages/teacherDetail/teacherDetail",windowTop:0}},{path:"/pages/userinfo/userinfo",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"个人资料",navigationStyle:"custom"})},[e("pages-userinfo-userinfo",{slot:"page"})])}},meta:{name:"pages-userinfo-userinfo",isNVue:!1,pagePath:"pages/userinfo/userinfo",windowTop:0}},{path:"/pages/aboutUs/aboutUs",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"关于我们",navigationStyle:"custom"})},[e("pages-aboutUs-aboutUs",{slot:"page"})])}},meta:{name:"pages-aboutUs-aboutUs",isNVue:!1,pagePath:"pages/aboutUs/aboutUs",windowTop:0}},{path:"/pages/feedback/feedback",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"意见反馈",navigationStyle:"custom"})},[e("pages-feedback-feedback",{slot:"page"})])}},meta:{name:"pages-feedback-feedback",isNVue:!1,pagePath:"pages/feedback/feedback",windowTop:0}},{path:"/pages/buyLesson/buyLesson",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"购买课程",navigationStyle:"custom"})},[e("pages-buyLesson-buyLesson",{slot:"page"})])}},meta:{name:"pages-buyLesson-buyLesson",isNVue:!1,pagePath:"pages/buyLesson/buyLesson",windowTop:0}},{path:"/pages/partiPost/partiPost",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"参与帖子",navigationStyle:"custom"})},[e("pages-partiPost-partiPost",{slot:"page"})])}},meta:{name:"pages-partiPost-partiPost",isNVue:!1,pagePath:"pages/partiPost/partiPost",windowTop:0}},{path:"/pages/questionDetail/questionDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"帖子详情",navigationStyle:"custom"})},[e("pages-questionDetail-questionDetail",{slot:"page"})])}},meta:{name:"pages-questionDetail-questionDetail",isNVue:!1,pagePath:"pages/questionDetail/questionDetail",windowTop:0}},{path:"/pages/payOrder/payOrder",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"支付",navigationStyle:"custom"})},[e("pages-payOrder-payOrder",{slot:"page"})])}},meta:{name:"pages-payOrder-payOrder",isNVue:!1,pagePath:"pages/payOrder/payOrder",windowTop:0}},{path:"/preview-image",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-preview-image",{slot:"page"})])}},meta:{name:"preview-image",pagePath:"/preview-image"}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}]}).call(this,t("c8ba"))},"42e7":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("a4bb"));t("ac6a");var r=a(t("f499")),i=a(t("cebc")),s=a(t("795b"));t("96cf");var u=a(t("3b8d")),c=a(t("d225")),l=a(t("b0b4")),g=a(t("bd86")),d=function(){function e(){var n=this;(0,c.default)(this,e),(0,g.default)(this,"config",{baseUrl:"",header:{"content-type":"application/json;charset=UTF-8"},method:"GET",dataType:"json",responseType:"text"}),(0,g.default)(this,"interceptor",{request:function(e){e&&(n.requestBeforeFun=e)},response:function(e,t){e&&t&&(n.requestComFun=e,n.requestComFail=t)}})}return(0,l.default)(e,[{key:"requestBeforeFun",value:function(e){return e}},{key:"requestComFun",value:function(e){return e}},{key:"requestComFail",value:function(e){return e}},{key:"validateStatus",value:function(e){return 200===e}},{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"request",value:function(){var n=(0,u.default)(regeneratorRuntime.mark(function n(){var t,a=this,o=arguments;return regeneratorRuntime.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},t.baseUrl=this.config.baseUrl,t.dataType=t.dataType||this.config.dataType,t.responseType=t.responseType||this.config.responseType,t.url=t.url||"",t.data=t.data||{},t.params=t.params||{},t.header=t.header||this.config.header,t.method=t.method||this.config.method,n.abrupt("return",new s.default(function(n,o){var s=!0,u={};t.complete=function(e){e.config=u,a.validateStatus(e.statusCode)?(e=a.requestComFun(e),n(e)):(e=a.requestComFail(e),o(e))};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"handle cancel",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a={errMsg:e,config:n};o(a),s=!1};u=(0,i.default)({},a.requestBeforeFun(t,c));var l=(0,i.default)({},u);if(s){var g=e.posUrl(t.url)?t.url:t.baseUrl+t.url;if("{}"!==(0,r.default)(t.params)){var d=e.addQueryString(t.params);g+=-1===g.indexOf("?")?"?".concat(d):"&".concat(d)}l.url=g,uni.request(l)}}));case 10:case"end":return n.stop()}},n,this)}));function t(){return n.apply(this,arguments)}return t}()},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request((0,i.default)({url:e,method:"GET"},n))}},{key:"post",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"POST"},t))}},{key:"put",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"PUT"},t))}},{key:"delete",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"DELETE"},t))}},{key:"connect",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"CONNECT"},t))}},{key:"head",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"HEAD"},t))}},{key:"options",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"OPTIONS"},t))}},{key:"trace",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"TRACE"},t))}},{key:"upload",value:function(n,t){var a=this,o=t.filePath,r=t.name,u=t.header,c=t.formData;return new s.default(function(t,s){var l=!0,g={},d={baseUrl:a.config.baseUrl,url:n,filePath:o,method:"UPLOAD",name:r,header:u||a.config.header,formData:c,complete:function(e){e.config=g,200===e.statusCode?(e=a.requestComFun(e),t(e)):(e=a.requestComFail(e),s(e))}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"handle cancel",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,t={errMsg:e,config:n};s(t),l=!1};g=(0,i.default)({},a.requestBeforeFun(d,p));var f=(0,i.default)({},g);l&&(f.url=e.posUrl(n)?n:a.config.baseUrl+n,uni.uploadFile(f))})}}],[{key:"posUrl",value:function(e){return/(http|https):\/\/([\w.]+\/?)\S*/.test(e)}},{key:"addQueryString",value:function(e){var n="";return(0,o.default)(e).forEach(function(t){n+=t+"="+e[t]+"&"}),n.substring(0,n.length-1)}}]),e}();n.default=d},"48a2":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("e143")),r=a(t("2f62"));o.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{},address:{},coords:{},isWeixin:"",openid:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},addressinfo:function(e,n){e.address=n,uni.setStorage({key:"address",data:n})},coordsinfo:function(e,n){e.coords=n,uni.setStorage({key:"coords",data:n})},isweixin:function(e,n){console.log(n),e.isWeixin=n},setopenid:function(e,n){e.openid=n,uni.setStorage({key:"openid",data:n})}},actions:{}}),s=i;n.default=s},"56c3":function(e,n,t){var a=t("ef9f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=t("4f06").default;o("0afb4e03",a,!0,{sourceMap:!1,shadowMode:!1})},"6e05":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={appid:"__UNI__14021FC"};n.default=a},9578:function(e,n,t){"use strict";var a=t("56c3"),o=t.n(a);o.a},ac83:function(e,n,t){"use strict";var a,o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},r=[];t.d(n,"b",function(){return o}),t.d(n,"c",function(){return r}),t.d(n,"a",function(){return a})},b90f:function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("795b"));t("6762");var r=["133","149","153","173","177","180","181","189","199","130","131","132","145","155","156","166","171","175","176","185","186","166","134","135","136","137","138","139","147","150","151","152","157","158","159","172","178","182","183","184","187","188","198"],i=function(e){return 11===e.length&&r.includes(e.slice(0,3))},s=function(e){return new o.default(function(n,t){var a=newTestPhone(e+"");a?n(a):(uni.toast({title:"手机号格式不正确",icon:"none"}),t(a))})},u=function(e){var n=e.title,t=e.icon,a=void 0===t?"success":t,r=e.duration,i=void 0===r?1500:r;return new o.default(function(e,t){uni.showToast({title:n,icon:a,duration:i,success:function(){setTimeout(function(){e()},i)},fail:function(){t()}})})},c={test_phone:i,verifyPhone:s,toast:u};n.default=c},bc27:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};n.default=a},ef9f:function(e,n,t){n=e.exports=t("2350")(!1),n.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n/*每个页面公共css */.container{font-size:%?30?%}.flex{display:-webkit-box;display:-webkit-flex;display:flex}.flex1{-webkit-box-flex:1;-webkit-flex:1;flex:1}.fdc{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.jcsb{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.jcc{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.jcfe{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.aic{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.por{position:relative}.pof{position:fixed}.poa{position:absolute}.tac{text-align:center}.line{width:100%;height:%?16?%;background-color:#f7f7f7}.bxsbb{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ellipsiss{\r\n\t/* width: 300upx; */overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.nodata{padding:%?100?%;text-align:center}.ylf-button{margin:%?200?% auto;width:%?611?%;height:%?98?%;line-height:%?98?%;border-radius:%?98?%;font-size:$y-fs40;text-align:center;color:#fff;background-color:#60abfc}",""])}}); ```

php调用第三方接口,无法获取数据是为什么?

# 这是我的代码 <?php header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Origin: *"); // 允许任意域名发起的跨域请求 header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With'); $url = "https://www.sojson.com/open/api/lunar/json.shtml"; $params = array( "date" => "2012-01-01",//日期,格式2014-09-09 ); $paramstring = http_build_query($params); $content = Rcurl($url,$paramstring); $result = json_decode($content,true); if($result){ if($result['error_code']=='0'){ print_r($result); }else{ echo $result['error_code'].":".$result['reason']; } }else{ echo "请求失败"; } //************************************************** /** * 请求接口返回内容 * @param string $url [请求的URL地址] * @param int $ipost [是否采用POST形式] * @return string */ function Rcurl($url,$params=false,$ispost=0){ $httpInfo = array(); $ch = curl_init(); curl_setopt( $ch, CURLOPT_HTTP_VERSION , CURL_HTTP_VERSION_1_1 ); curl_setopt( $ch, CURLOPT_USERAGENT , 'JuheData' ); curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT , 60 ); curl_setopt( $ch, CURLOPT_TIMEOUT , 60); curl_setopt( $ch, CURLOPT_RETURNTRANSFER , true ); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); if( $ispost ) { curl_setopt( $ch , CURLOPT_POST , true ); curl_setopt( $ch , CURLOPT_POSTFIELDS , $params ); curl_setopt( $ch , CURLOPT_URL , $url ); } else { if($params){ curl_setopt( $ch , CURLOPT_URL , $url.'?'.$params ); }else{ curl_setopt( $ch , CURLOPT_URL , $url); } } $response = curl_exec( $ch ); if ($response === FALSE) { //echo "cURL Error: " . curl_error($ch); return false; } $httpCode = curl_getinfo( $ch , CURLINFO_HTTP_CODE ); $httpInfo = array_merge( $httpInfo , curl_getinfo( $ch ) ); curl_close( $ch ); return $response; }

API调用后如何重定向

<div class="post-text" itemprop="text"> <p>I have an angular front end app and a golang api. The angular app is built (and runs fine). It makes a few calls to the go api which makes calls to an external service. After the calls to the external service, I want the frontend to redirect to a success page. I can't seem to get that to work in my Go code. </p> <p>This is what I have (and works except for the redirect):</p> <pre><code>package main import ( "github.com/gin-gonic/gin" "github.com/gin-contrib/static" "net/http" "io/ioutil" "strings" "encoding/json" "strconv" "net/http/cookiejar" ) const BASE_ENDPOINT = "https://external.host.com/" const FIRST_CALL_ENDPOINT = BASE_ENDPOINT + "first" const SECOND_CALL_ENDPOINT = BASE_ENDPOINT + "second" func main() { // create an http client with a cookie jar cookieJar, _ := cookiejar.New(nil) client := &amp;http.Client{ Jar: cookieJar, } router := gin.Default() // this is the default route for the front end. The angular app will handle // all non-api calls router.Use(static.Serve("/", static.LocalFile("../frontend/dist", true))) // Routes api := router.Group("/") { // get post calls to this endpoint api.POST("/my/first", func(c *gin.Context) { userData := c.PostForm("userData") rawTextBody := "data=" + userData resp, err := client.Post(FIRST_CALL_ENDPOINT, "text/plain", strings.NewReader(rawTextBody)) if err != nil { panic(err) } body, _ := ioutil.ReadAll(resp.Body) var data map[string]interface{} jsonErr := json.Unmarshal([]byte(body), &amp;data) if jsonErr != nil { panic(jsonErr) } // data comes back as a "float64", is converted to an int, then to a string var jobId = strconv.Itoa(int(data["curjobId"].(float64))) moreUserData := c.PostForm("moreUserData") rawTextBodyCat := "secondUserData=" + moreUserData + "&amp;jobid=" + jobId _, secErr := client.Post(SECOND_CALL_ENDPOINT, "text/plain", strings.NewReader(rawTextBodyCat)) if secErr != nil { panic(secErr) } // TODO: need "successfully submitted" page. This already exists in the frontend angular server // I can manually go to that page. ('/my/success') // what i've tried: //http.Redirect(w, r, "/my/success", http.StatusSeeOther) //http.RedirectHandler( "/my/success", http.StatusSeeOther) }) } router.NoRoute(func(c *gin.Context) { c.File("../frontend/dist/index.html") }) // Run server router.Run(":8899") } </code></pre> <p>In my code comments, you can see I've tried <code>http.Redirect(w, r, "/my/success", http.StatusSeeOther)</code> but I don't know how to call it in this context. I am not setting up a route listener, but just trying to trigger a redirect on demand. Should this be handled by the angular app somehow? How can I tell the angular app "all done"?</p> </div>

MTA HTML5统计API文档数据接口问题?

<?php header("content-type:text/html;charset=utf-8"); date_default_timezone_set("Asia/Shanghai"); $secret_key = '00000000'; $yy=000000000; $params=array("app_id"=>$yy,"start_date"=>'2019-8- 10',"end_date"=>'2019-8-11',"idx"=>19); ksort($params); foreach ($params as $key => $value) { $secret_key.= $key.'='.$value; } $sign = md5($secret_key); $url="https://mta.qq.com/h5/api/ctr_core_data? app_id=".$yy."&start_date=2019-8-10&end_date=2019-8-11&idx=19&sign=".$sign; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HEADER, false); $res=curl_exec($ch); curl_close($ch); $fhz=json_decode($res, true); echo $fhz["code"]; //照这式列写的 返回码一直是错的 {"code":60201,"info":"illegal index","data":[]} 希望明白的给指点指点 感谢 ?>

如何连接到我自己的站点的Magento REST API

<div class="post-text" itemprop="text"> <p>I have a new Magento site where I do not have direct control over the server but do have admin access to the site. I would very much appreciate if someone can explain what I'm doing wrong and/or the simplest way to connect to my own site.</p> <p>I have configured all Web Service settings as per <a href="http://devdocs.magento.com/guides/m1x/api/rest/authentication/oauth_authentication.html#OAuthAuthentication-PHPExamples" rel="nofollow">http://devdocs.magento.com/guides/m1x/api/rest/authentication/oauth_authentication.html#OAuthAuthentication-PHPExamples</a></p> <p>I have the consumer key and consumer secret. For convenience I'm pasting the sample PHP login code provided by Magento. I'm using it exactly as provided other than subbing in my domain and credentials.</p> <pre><code>&lt;?php /** * Example of retrieving the products list using Admin account via Magento REST API. OAuth authorization is used * Preconditions: * 1. Install php oauth extension * 2. If you were authorized as a Customer before this step, clear browser cookies for 'yourhost' * 3. Create at least one product in Magento * 4. Configure resource permissions for Admin REST user for retrieving all product data for Admin * 5. Create a Consumer */ // $callbackUrl is a path to your file with OAuth authentication example for the Admin user $callbackUrl = "http://yourhost/oauth_admin.php"; $temporaryCredentialsRequestUrl = "http://yourhost/oauth/initiate?oauth_callback=" . urlencode($callbackUrl); $adminAuthorizationUrl = 'http://yourhost/admin/oAuth_authorize'; $accessTokenRequestUrl = 'http://yourhost/oauth/token'; $apiUrl = 'http://yourhost/api/rest'; $consumerKey = 'yourconsumerkey'; $consumerSecret = 'yourconsumersecret'; session_start(); if (!isset($_GET['oauth_token']) &amp;&amp; isset($_SESSION['state']) &amp;&amp; $_SESSION['state'] == 1) { $_SESSION['state'] = 0; } try { $authType = ($_SESSION['state'] == 2) ? OAUTH_AUTH_TYPE_AUTHORIZATION : OAUTH_AUTH_TYPE_URI; $oauthClient = new OAuth($consumerKey, $consumerSecret, OAUTH_SIG_METHOD_HMACSHA1, $authType); $oauthClient-&gt;enableDebug(); if (!isset($_GET['oauth_token']) &amp;&amp; !$_SESSION['state']) { $requestToken = $oauthClient-&gt;getRequestToken($temporaryCredentialsRequestUrl); $_SESSION['secret'] = $requestToken['oauth_token_secret']; $_SESSION['state'] = 1; header('Location: ' . $adminAuthorizationUrl . '?oauth_token=' . $requestToken['oauth_token']); exit; } else if ($_SESSION['state'] == 1) { $oauthClient-&gt;setToken($_GET['oauth_token'], $_SESSION['secret']); $accessToken = $oauthClient-&gt;getAccessToken($accessTokenRequestUrl); $_SESSION['state'] = 2; $_SESSION['token'] = $accessToken['oauth_token']; $_SESSION['secret'] = $accessToken['oauth_token_secret']; header('Location: ' . $callbackUrl); exit; } else { $oauthClient-&gt;setToken($_SESSION['token'], $_SESSION['secret']); $resourceUrl = "$apiUrl/products"; $oauthClient-&gt;fetch($resourceUrl, array(), 'GET', array('Content-Type' =&gt; 'application/json')); $productsList = json_decode($oauthClient-&gt;getLastResponse()); print_r($productsList); } } catch (OAuthException $e) { print_r($e-&gt;getMessage()); echo "&amp;lt;br/&amp;gt;"; print_r($e-&gt;lastResponse); } </code></pre> <p>The error I receive is </p> <pre><code>making the request failed (Couldn't resolve host name)&amp;lt;br/&amp;gt;gt; </code></pre> <p>It's failing at this line:</p> <pre><code>$requestToken = $oauthClient-&gt;getRequestToken($temporaryCredentialsRequestUrl); </code></pre> <p>Apparently because the $callbackUrl I defined is invalid. Well, what should be here? Can it be any URL? Must it sit on the same server as the site? </p> </div>

Postman的GET请求没有显示JSON输出

<div class="post-text" itemprop="text"> <p>I'm working with a PHP REST API, I made this function:</p> <pre><code> function getNotifications($request) { require_once 'db.php'; $emp = json_decode($request-&gt;getBody()); $id = $request-&gt;getAttribute("id"); $sql = "select * FROM notifications WHERE userid= :userid"; try { $db = getConnection(); $stmt = $db-&gt;prepare($sql); $stmt-&gt;bindParam("userid", $id); $stmt-&gt;execute(); $wines = $stmt-&gt;fetch(PDO::FETCH_OBJ); $db = null; return json_encode($wines); } catch(PDOException $e) { echo '{"error":{"text":'. $e-&gt;getMessage() .'}}'; } } </code></pre> <p>When I try to echo the <code>wines</code> variable, <code>echo wines-&gt;message;</code>, it's working, so the problem isn't from the query.<br> The problem is that when I try to make a call to the API without echo, nothing shows off, not even a message saying that I have no result.</p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Linux面试题(2020最新版)

文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

将一个接口响应时间从2s优化到 200ms以内的一个案例

一、背景 在开发联调阶段发现一个接口的响应时间特别长,经常超时,囧… 本文讲讲是如何定位到性能瓶颈以及修改的思路,将该接口从 2 s 左右优化到 200ms 以内 。 二、步骤 2.1 定位 定位性能瓶颈有两个思路,一个是通过工具去监控,一个是通过经验去猜想。 2.1.1 工具监控 就工具而言,推荐使用 arthas ,用到的是 trace 命令 具体安装步骤很简单,大家自行研究。 我的使用步骤是...

学历低,无法胜任工作,大佬告诉你应该怎么做

微信上收到一位读者小涛的留言,大致的意思是自己只有高中学历,经过培训后找到了一份工作,但很难胜任,考虑要不要辞职找一份他能力可以胜任的实习工作。下面是他留言的一部分内容: 二哥,我是 2016 年高中毕业的,考上了大学但没去成,主要是因为当时家里经济条件不太允许。 打工了三年后想学一门技术,就去培训了。培训的学校比较垃圾,现在非常后悔没去正规一点的机构培训。 去年 11 月份来北京找到了一份工...

JVM内存结构和Java内存模型别再傻傻分不清了

JVM内存结构和Java内存模型都是面试的热点问题,名字看感觉都差不多,网上有些博客也都把这两个概念混着用,实际上他们之间差别还是挺大的。 通俗点说,JVM内存结构是与JVM的内部存储结构相关,而Java内存模型是与多线程编程相关,本文针对这两个总是被混用的概念展开讲解。 JVM内存结构 JVM构成 说到JVM内存结构,就不会只是说内存结构的5个分区,而是会延展到整个JVM相关的问题,所以先了解下

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Google 与微软的浏览器之争

浏览器再现“神仙打架”。整理 | 屠敏头图 | CSDN 下载自东方 IC出品 | CSDN(ID:CSDNnews)从 IE 到 Chrome,再从 Chrome 到 Edge,微软与...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

85后蒋凡:28岁实现财务自由、34岁成为阿里万亿电商帝国双掌门,他的人生底层逻辑是什么?...

蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

什么时候跳槽,为什么离职,你想好了么?

都是出来打工的,多为自己着想

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

立即提问
相关内容推荐