让前端飞程序员web前端学习

曾经有这么个前端程序员,写出了史上最牛逼的接口

2018-06-23  本文已影响317人  烟雨丿丶蓝
image

曾经的曾经有这么个牛逼的前端。

某产品哥提了个清理缓存的需求,然后就有了这段神代码。

<pre style="margin: 0px; padding: 0px; border: 0px; font-style: normal; font-variant: normal; 
font-weight: normal; font-stretch: inherit; font-size: 18px; line-height: 30px; font-family: inherit; 
vertical-align: baseline; word-break: break-word; color: rgb(93, 93, 93); 
letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; 
text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; 
background-color: rgb(255, 255, 255);">
<a href="javascript: alert('清除成功!')" >清空缓存</a>
</pre>

怎么样是不是不懂程序不行呀!

多少学点前端吧,互联网时代的生活与前端是分不开的。

某网站上来就弹,让你非要注册,而会前端就不用,照样看网站。

某网站一直弹出对话框,你烦不烦,会前端世界就安静了。

上边的清缓存代码已经更牛逼了,难道还有更牛的程序员吗?

答案肯定是有的。

一个产品提了一个紧急需求,就是发早报,然后就出来了下面这段神代码

<pre style="margin: 0px; padding: 0px; border: 0px; font-style: normal; font-variant: normal;
 font-weight: normal; font-stretch: inherit; font-size: 18px; line-height: 30px; font-family: inherit; 
vertical-align: baseline; word-break: break-word; color: rgb(93, 93, 93); letter-spacing: normal; 
orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; 
word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">
<?php
 $title = "#互联网早报#";
 $str = "9月29日 星期五nb
1.React 16 如期发布,遵循 MIT 许可;nb
2.iWeb学院10月14号两位畅销书作者Node公开课;nb";
2.iWeb学院10月23号前端就业脱产班火热报名中;nb";
 $arr = array("msg"=>"返回数据成功","status"=>"1","data"=>$str,"title"=>$title);
 echo json_encode($arr);
?>
</pre>

主要功能: 可以获取当天早报,可以每天提交早报。 然后就有了神代码。 怎么样。程序员真牛B,简单粗爆。 不懂代码的人是不是感觉少点什么。

image

好了继续工作了,昨天搞一天小程序。

微信开发工具真坑,千万别用最新版本的。

wx.request 中的success 无反应。以为哪搞错了呢,后来找了没有升级微信开发工具的电脑试了一下就跑通了。只能降级开发工具了。

如果有兴趣学习web前端的小伙伴,可以来我的web前端学习君羊哦575308719可以免费领取精品的web前端学习教程一份哦!

image image
<pre style="margin: 0px; padding: 0px; border: 0px; font-style: normal; font-variant: normal;
 font-weight: normal; font-stretch: inherit; font-size: 18px; line-height: 30px; font-family: inherit; 
vertical-align: baseline; word-break: break-word; color: rgb(93, 93, 93); letter-spacing: normal; 
orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; 
word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">
response 里都有返回值,结果success无反应。死活不出来。
早期的的几个接口从升级以后也不能用了。
真坑。
</pre>
image image

《新版本v1.》 真心不好用。

升级需谨慎。

小程序的接口都是以Https的,所以Nginx无痛跨域起了很大作用。


会写代码的人生是真人生呀。

有个朋友做过电销,做过市场,做过战略,做过品牌,做过运营,做过产品,总之做过好多,唯有前端没做过,每次提需求,这不能做,那不能做,如今也成为代码高手了。再看谁逼逼说这个完成不了,那个不能做的。

你呢,是不是也时常遇到一些窘境,那你更应该学前端了。学前端人生就不一样了。

来源:知乎
作者:象天

上一篇下一篇

猜你喜欢

热点阅读