Plugins/writing/writing.js
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function(global){
var url = "?";
if (typeof (AppItem) == "string" && AppItem.length > 0)
{
url += "AppItem=" + AppItem + "&";
}
else
{
if (typeof (ModelID) == "string" && ModelID.length > 0)
{
url += "ModelID=" + ModelID + "&";
}
}
url += "act=check";
//https://openapi.mypitaya.com
var config = {
ajax:{
// url:'http://localhost:2006/openapi/correct?appkey=22cef02300534158b127a52ade875136', // 临时解决跨域
//url:'https://openapi.mypitaya.com/openapi/correct?appkey=22cef02300534158b127a52ade875136', // 报跨域错误
url:url,//'http://192.168.1.8/ekeframev9/test/getPost.aspx',
type:"POST",
dataType:"json",
// 错误处理
error:function(e){
console.log(e);
}
},
ajaxSuccessCode:"0", //成功状态码 response.code == ajaxSuccessCode
svgURL:'icons.svg', // 绝对路径或基于引用此js页面的相对路径
}
// 可用方法
global.writing = {
config:config,
parseEditor:parseEditorContent,
setContentHtml:setContentHtml,
getContentHtml:getContentHtml,
getContentText:getContentText,
clearRightContent:clearRightContent
}
/***
* @arguments
* callback<function> 调取后发送校验数据,只在验证前调取一次,直接调取或提交HTML片段后调取
* html<string> 校验HTML片段
* text<string> 校验文本
* */
function beforeVerification(callback,html,text) {
//alert($("#ID").val());
save(true);
//alert(document.location.href);
// $.ajax({
// url:"",
// type:'POST',
// dataType:"json",
// success:function(response){
后面还有 400 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
