摘要: 前言:很久没更新博客,最近公司pc端技术选型用angular,这几天就赶鸭子上架,硬着头皮直接上手angular。其中有许多小坑陆陆续续踩起走。今天就遇到一个比较常见的问题:图片上传。主题:图片上传服务器,然后通过服务器传阿里云。下面直接贴前端代码:$http({ method: 'POST', ... 阅读全文
posted @ 2015-08-27 22:04 唐岗 阅读(4937) 评论(0) 推荐(0) 编辑
摘要: res.setHeader("Access-Control-Allow-Origin", "*"); res.setHeader("Access-Control-Allow-Headers", "*"); res.setHeader("Access-Control-Allow-Metho... 阅读全文
posted @ 2015-06-11 20:49 唐岗 阅读(2547) 评论(0) 推荐(0) 编辑
摘要: 1 ; 2 3 var mapcontorl = "mapContainer"; 4 var fullscreen = false; 5 6 7 function qqMap(options) { 8 var that = this 9 , _mapInfo... 阅读全文
posted @ 2014-08-26 14:21 唐岗 阅读(1753) 评论(0) 推荐(1) 编辑
摘要: 网上说了一些jsonp的示例,感觉都没用,最后研究了一下,调用腾讯的一个api。最后要加output=jsonp&callback=?这个,比较适用。 var url = "http://apis.map.qq.com/ws/place/v1/search?boundary=nearby(39.90... 阅读全文
posted @ 2014-08-07 16:42 唐岗 阅读(640) 评论(1) 推荐(0) 编辑
摘要: 最近帮朋友写了一个投票的东西,根据cookie来判断,只能投票一次,下面贴上代码:<html><head> <title>test</title> <script type="text/javascript" src="jquery-132min2.js" ></script> <script type="text/javascript" src="Jquery-cookie.js" ></script> <scr 阅读全文
posted @ 2012-05-29 10:36 唐岗 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 今天无聊,用了半个小时帮一个学生写了一个简单的计算器程序。只有最基本的功能,可以供初学者参考。 下面贴上代码: public partial class Form1 : Form { private string FuHao; //定义操作符号(+,-,*,/) private string... 阅读全文
posted @ 2012-02-20 12:39 唐岗 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: Dim aJMail Set aJMail=Server.CreateObject("JMail.Message") If aJMail Is Nothing Then response.write "" Response.End End If wzxxfjr="122... 阅读全文
posted @ 2011-06-11 10:16 唐岗 阅读(454) 评论(0) 推荐(0) 编辑
摘要: $to = "429517385@qq.com"; $date = date("Y年m月d日"); $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=utf-8'... 阅读全文
posted @ 2011-06-11 10:13 唐岗 阅读(1000) 评论(2) 推荐(1) 编辑
摘要: public class DBHelper { SqlConnection conn = null; public DBHelper() { string str = ConfigurationManager.ConnectionStrings["sql"].ConnectionString; c... 阅读全文
posted @ 2011-03-31 17:22 唐岗 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 引用jquery文件: 调用js: function check(){ if (document.getElementById_x("username").value=="") { alert("请输入用户名") document.getElementById_x("username").focu... 阅读全文
posted @ 2011-03-31 17:20 唐岗 阅读(3842) 评论(0) 推荐(0) 编辑