json形式のデータをPOSTしたい場合などに,curlコマンドを使ってテストすることがあります。
それで,curlをWindowsにインストールして,コマンドプロンプトから実行してみるものの,以下のようなエラーが出る場合があります。
curl: (1) Protocol "'https" not supported or disabled in libcurl
そのような場合には,まず以下のポイントを確認してみましょう。
続きを読む
json形式のデータをPOSTしたい場合などに,curlコマンドを使ってテストすることがあります。
それで,curlをWindowsにインストールして,コマンドプロンプトから実行してみるものの,以下のようなエラーが出る場合があります。
curl: (1) Protocol "'https" not supported or disabled in libcurl
jQueryが動いていないように思える場合に、まず試してみるべき方法があります。
(function($){ コード }(jQuery))
$(function(){ $("table td:has(input[type=checkbox])").hover(function(){ $(this).css("background-color","#efefef"); },function(){ $(this).css("background-color","transparent"); }); $("table td:has(input[type=checkbox])").click(function(){ var chkb = $(this).children("input[type=checkbox]"); if(chkb.attr("checked")) { chkb.attr('checked', false); }else{ chkb.attr('checked', true); } }); $("table td input[type=checkbox]").click(function(){ if($(this).attr("checked")) { $(this).attr('checked', false); }else{ $(this).attr('checked', true); } }); });
(function($){//これで囲む $(function(){ $("table td:has(input[type=checkbox])").hover(function(){ $(this).css("background-color","#efefef"); },function(){ $(this).css("background-color","transparent"); }); $("table td:has(input[type=checkbox])").click(function(){ var chkb = $(this).children("input[type=checkbox]"); if(chkb.attr("checked")) { chkb.attr('checked', false); }else{ chkb.attr('checked', true); } }); $("table td input[type=checkbox]").click(function(){ if($(this).attr("checked")) { $(this).attr('checked', false); }else{ $(this).attr('checked', true); } }); }); }(jQuery));//これで囲む