为了账号安全,请及时绑定邮箱和手机立即绑定

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

标签:
前端工具

https://img1.sycdn.imooc.com//5d2d77990001449405800319.jpg

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,简单粗爆。 不懂代码的人是不是感觉少点什么。

https://img1.sycdn.imooc.com//5d2d77a50001c50805260650.jpg

image

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

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

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

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

https://img1.sycdn.imooc.com//5d2d77ae0001b45300230021.jpg

image

https://img1.sycdn.imooc.com//5d2d792a0001020d05390381.jpg

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>

https://img1.sycdn.imooc.com//5d2d795900014d9303070043.jpg

image

https://img1.sycdn.imooc.com//5d2d795e00011a1803850152.jpg

image

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

升级需谨慎。

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

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

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

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

来源:知乎
作者:象天



作者:急速奔跑中的蜗牛
链接:https://www.jianshu.com/p/5ad7238f69f8


点击查看更多内容
1人点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消