会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zxh1919
博客园
首页
新随笔
联系
管理
订阅
2021年9月25日
C# sql查询数据库返回单个值方法
摘要: static string sqlServer= "server=.;database=DBsql;user id=sa;pwd=sa;"; #region 返回单个值 public static void refdange() { //实例化连接通道 SqlConnection conn = ne
阅读全文
posted @ 2021-09-25 18:01 zxh91989
阅读(1030)
评论(0)
推荐(0)
2021年8月31日
ajax 读取本地文件,jquery读取本地文件
摘要: $(document).ready(function(){ $("#b01").click(function(){ htmlobj=$.ajax({url:"/jquery/test1.txt",async:false}); var temp=htmlobj.responseText; alert(
阅读全文
posted @ 2021-08-31 10:36 zxh91989
阅读(736)
评论(0)
推荐(0)
JS对本地文件进行读写、替换和添加
摘要: 在用IE运行(必须) <!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title></title> </head> <script language=
阅读全文
posted @ 2021-08-31 10:32 zxh91989
阅读(1017)
评论(0)
推荐(0)
2021年8月29日
js获取当前网页的源码
摘要: 通过 outerHTML document.documentElement.outerHTML 通过异步请求(完整源码,推荐) $.get(window.location.href,function(res){ console.log(res); }); 通过jQuery $("html").htm
阅读全文
posted @ 2021-08-29 21:06 zxh91989
阅读(1344)
评论(0)
推荐(0)
2021年8月25日
jquery实现点击图片全屏查看功能
摘要: js代码 $('img').click(function () { //获取图片路径 var imgsrc = $(this).attr("src"); console.log(imgsrc); var opacityBottom = '<div class="opacityBottom" styl
阅读全文
posted @ 2021-08-25 16:37 zxh91989
阅读(758)
评论(0)
推荐(0)
html查看大图、js查看大图
摘要: 查看大图、html查看大图、js查看大图 $(".pimg").click(function(){ var _this = $(this);//将当前的pimg元素作为_this传入函数 imgShow("#outerdiv", "#innerdiv", "#bigimg", _this); });
阅读全文
posted @ 2021-08-25 16:36 zxh91989
阅读(860)
评论(0)
推荐(0)
2021年1月26日
开发小程序注意的一些问题
摘要: 2018年10月10日官网3个接口废弃的通知: 1、分享监听接口分享消息给好友时,开发者将无法从callback获知用户是否分享完成,也无法在分享后立即获得群ID。请参考调整指引 2、getUserInfo接口用户需要点击组件后,才可以触发登录授权弹窗、授权自己的昵称头像等数据。请参考调整指引 3、
阅读全文
posted @ 2021-01-26 10:49 zxh91989
阅读(138)
评论(0)
推荐(0)
2020年7月1日
Flutter TextField 文本输入框的基本属性
摘要: const TextField({ Key key, this.controller, // 控制正在编辑文本 this.focusNode, // 获取键盘焦点 this.decoration = const InputDecoration(), // 边框装饰 TextInputType key
阅读全文
posted @ 2020-07-01 18:49 zxh91989
阅读(670)
评论(0)
推荐(0)
Flutter 之网络请求Dio, FormData, 表单网络请求, x-www-form-urlencoded
摘要: 官方表单网络请求示例: FormData formData = FormData.fromMap({ "name": "wendux", "age": 25, "file": await MultipartFile.fromFile("./text.txt",filename: "upload.tx
阅读全文
posted @ 2020-07-01 10:18 zxh91989
阅读(4063)
评论(0)
推荐(0)
2020年6月23日
操作DataTable数据,修改某列的值
摘要: DataTable table : DataRow row=table.Rows[i];//DataTable的第i行 row.BeginEdit();//开始编辑行 row["columnname"]="4:05:06";//给行的列"columnname"赋值 row.EndEdit();//结
阅读全文
posted @ 2020-06-23 10:01 zxh91989
阅读(3822)
评论(0)
推荐(0)
下一页
公告