CSDN如何转载别人的文章
对于喜欢逛CSDN的人来说,看别人的博客确实能够对自己有不小的提高,有时候看到特别好的博客想转载下载,但是不能一个字一个字的敲了,这时候我们就想快速转载别人的博客,把别人的博客移到自己的空间里面,当然有人会说我们可以收藏博客啊,就不需要转载,(⊙o⊙)… 也对。。
实现
因为我自己当初想转载的时候却不知道该怎么转载,所以学会了之后就把方法写出来,帮助那些想转载却不知道该怎么转载的人(大神勿笑)。
我们首先打开要转载的博客,然后鼠标右键就会出现下面的菜单:
我们点击【审查元素】,就会出现当前HTML页面的代码,如下:
我们选中“article_content”从图片左边我们也可以看到,博客的内容已经被我们选中了,也就是我们想要转载的内容,然后右键,就会出现下面的菜单:
我们选中【Copy as HTML】就可以把其中要转载的内容复制下来,接下来的就是粘贴了。
我们先新建一篇文章,打开markdown编辑器(因为在普通的编辑器我没有找到方法/(ㄒoㄒ)/~~),然后粘贴一下,就会出现下面的内容:
可以在右边看到,博客内容已经被转载了,然后发表就可以了。
最后特别要注意的是,我们发表的时候一定要选择【转载】,尊重原创!!
- 本文已收录于以下专栏:
-
-
zhui_xiuge
2018-02-06 16:38 7楼 -
怎么照这种方法转载这条链接(http://blog.csdn.net/yhl_leo/article/details/50864612)里的文章,代码前面的编号总会位置出错
-
-
-
m0_37959241
2017-12-21 00:01 5楼 -
好用
-
您举报文章:CSDN如何转载别人的文章 | |
举报原因: | |
---|---|
原文地址: | |
原因补充: | (最多只允许输入30个字) |
|
<script language="javascript" type="text/javascript">
var isComment=0;
//显示隐藏地址
$(function () {
console.log("version:phoenix");
if(isComment){
$("#report_description").attr("disabled",true);
$("#sp_n").hide();
$("#sp_reason").html("评论内容:");
}
$(".report_type").click(function () {
$("#panel_originalurl,#report_other_content").hide();
switch ($(this).val()) {
case '3':
$("#panel_originalurl").show();
$("#originalurl").focus();
break;
case '7':
if(isComment){
$("#report_other_content").show().focus();
}
break;
}
});
$("#frmReport").submit(function () {
if (!currentUserName) {
if (confirm("您的操作必须登录,是否登录?")) {
location.href = "http://passport.csdn.net/account/login?from=" + encodeURIComponent(location.href);
return false;
}
return false;
}
var reportType = $("input[name=report_type]:checked").val();
if(!reportType){
alert("请选择举报原因!");
return false;
}
var otherInfo = "";
switch (reportType) {
case '3':
otherInfo = $("#originalurl").val();
if (otherInfo == ""||otherInfo=="http://") {
alert("举报抄袭必须提供原创文章地址!");
$("#originalurl").focus();
return false;
} else if(!checkeURL(otherInfo)) {
alert("请输入正确的原创文章地址!");
$("#originalurl").focus();
return false;
}
break;
case '7':
otherInfo = $("#report_other_content").val();
if (isComment && !otherInfo) {
alert("请填写举报的具体原因!");
$("#report_other_content").focus();
return false;
}
if(!isComment){
if(!$("#report_description").val()){
alert("请填写举报的具体原因!");
$("#report_description").focus();
return false;
}
}
break;
}
if(!isComment){
if($("#report_description").val().length>30){
alert("举报原因最多只允许输入30个字!");
return false;
}
}
nowTime = {
year: new Date().getFullYear(),
month: parseInt(new Date().getMonth())+1,
day: new Date().getDate(),
hours: parseInt(new Date().getHours())+1,
minutes: parseInt(new Date().getMinutes())+1,
seconds: parseInt(new Date().getSeconds())+1
};
var data = {
articleId: fileName,
commentId: 0,
reportType: reportType,
originalurl: $("#originalurl").val(),
report_other_content: $("#report_other_content").val(),
report_description: $("#report_description").val(),
currentUserName: currentUserName,
updatetime: nowTime.year+'/'+nowTime.month+'/'+nowTime.day+' '+ nowTime.hours+':'+nowTime.minutes+':'+seconds,
blogUser: username
};
if(!isComment){//如果是举报文章
data.report_other_content = data.report_description;
// data.report_description = "1. 神经网络这是一个常见的神经网络的图:这是一个常见的三层神经网络的基本构成,Layer L1是输入层,Layer L2是隐含层";
}
$.post(blog_address + "/common/report?id="+fileName+"&t=2", data, function (data) {
if (data.result == 1){
SetError("感谢您的举报,我们会尽快审核!");
}else{
if (data.content) alert(data.content);
}
});
return false;
});
$("#btnCloseReportDialog").click(function () {
CloseDiv();
});
});
//提示后关闭方法
function SetError(error) {
$("#btnCloseReportDialog").trigger("click");
alert(error);
CloseDiv();
}
//关闭方法
function CloseDiv() {
$.removeMask();
$("#report_dialog").hide();
return false;
}
//验证url
function checkeURL(url){
return /^http(s)?:\/\/([\w-]+\.)+[\w-]+/i.test(url);
}
</script>
{
$("#fan").html(0);
}
appendMark( ("#fan").html()=="") { $("#fan").html(0); } appendMark( ('.recommend_list').children('a').find('dt'), (′.extensionother′), ( ′ . e x t e n s i o n o t h e r ′ ) , ('.yd_a_d_feed_cla'))
GoTop({
right: 8,
hasReport: true,
reportFun: function() {
$.createMask();
var r = blog_address + “/common/report?id=” + fileName + “&t=” + 2;
if (3 == 2) {
var s = n.parentNode.parentNode.parentNode.getAttribute(“floor”);
r += “&floor=” + s
}
var i = (document.documentElement.clientHeight - 400) / 2 + (document.documentElement.scrollTop || document.body.scrollTop),
a = (document.documentElement.clientWidth - 400) / 2;
$("#report_dialog").load(r).css({
//top: i + "px",
top: '20%',
left: a
}).show()
}
})