Pjax.reload Cannot Read Property 'reload' of Undefined
وورد ورد روبن موضوع كل موقع pjax دون تحديث
مقدمة
بادئ ذي بدء ، إنها ليست احترافية. إنها طبق. ستحصل عليه pjax من المحطة بأكملها ، ولكن ستكون هناك العديد من المشاكل. يمكن للأصدقاء المهتمين رميها وإكمالها!
الدورة التعليمية
الخطوة الأولى: مرجع ملف jquery.js في ملف header.php قبل النص الأساسي ، بشكل عام ، لا تحتاج إلى الرجوع إلى القوالب. يجب وضعه أمام jquery.pjax.js
- // jquery.pjax.js
- // copyright chris wanstrath
- // https://github.com/defunkt/jquery-pjax
- (function($){
- // When chosen on a container with a selector, fetches the href with
- // ajax into the container or with the data-pjax aspect on the link
- // itself.
- //
- // Tries to make sure the back button and ctrl+click work the way
- // you'd expect.
- //
- // Exported as $.fn.pjax
- //
- // Accepts a jQuery ajax options object that may include these
- // pjax specific options:
- //
- //
- // container - Where to stick the response body. Usually a String selector.
- // $(container).html(xhr.responseBody)
- // (default: electric current jquery context)
- // push - Whether to pushState the URL. Defaults to true (of course).
- // replace - Want to utilize replaceState instead? That's cool.
- //
- // For convenience the second parameter can be either the container or
- // the options object.
- //
- // Returns the jQuery object
- function fnPjax(selector, container, options) {
- var context = this
- return this.on('click.pjax', selector, function(outcome) {
- var opts = $.extend({}, optionsFor(container, options))
- if (!opts.container)
- opts.container = $(this).attr('information-pjax') || context
- handleClick(event, opts)
- })
- }
- // Public: pjax on click handler
- //
- // Exported every bit $.pjax.click.
- //
- // event - "click" jQuery.Result
- // options - pjax options
- //
- // Examples
- //
- // $(document).on('click', 'a', $.pjax.click)
- // // is the same as
- // $(certificate).pjax('a')
- //
- // $(document).on('click', 'a', function(issue) {
- // var container = $(this).closest('[data-pjax-container]')
- // $.pjax.click(event, container)
- // })
- //
- // Returns nothing.
- function handleClick(event, container, options) {
- options = optionsFor(container, options)
- var link = outcome.currentTarget
- if (link.tagName.toUpperCase() !== 'A')
- throw "$.fn.pjax or $.pjax.click requires an ballast element"
- // Middle click, cmd click, and ctrl click should open
- // links in a new tab as normal.
- if ( upshot.which > one || upshot.metaKey || event.ctrlKey || event.shiftKey || event.altKey )
- return
- // Ignore cantankerous origin links
- if ( location.protocol !== link.protocol || location.hostname !== link.hostname )
- return
- // Ignore anchors on the same page
- if (link.hash && link.href.replace(link.hash, '') ===
- location.href.replace(location.hash, ''))
- return
- // Ignore empty anchor "foo.html#"
- if (link.href === location.href + '#')
- return
- // Ignore event with default prevented
- if (consequence.isDefaultPrevented())
- return
- var defaults = {
- url: link.href,
- container: $(link).attr('data-pjax'),
- target: link
- }
- var opts = $.extend({}, defaults, options)
- var clickEvent = $.Event('pjax:click')
- $(link).trigger(clickEvent, [opts])
- if (!clickEvent.isDefaultPrevented()) {
- pjax(opts)
- event.preventDefault()
- $(link).trigger('pjax:clicked', [opts])
- }
- }
- // Public: pjax on form submit handler
- //
- // Exported every bit $.pjax.submit
- //
- // event - "click" jQuery.Event
- // options - pjax options
- //
- // Examples
- //
- // $(document).on('submit', 'form', function(issue) {
- // var container = $(this).closest('[information-pjax-container]')
- // $.pjax.submit(effect, container)
- // })
- //
- // Returns nothing.
- role handleSubmit(event, container, options) {
- options = optionsFor(container, options)
- var form = event.currentTarget
- if (form.tagName.toUpperCase() !== 'FORM')
- throw "$.pjax.submit requires a form chemical element"
- var defaults = {
- type: form.method.toUpperCase(),
- url: form.action,
- information: $(form).serializeArray(),
- container: $(form).attr('data-pjax'),
- target: form
- }
- pjax($.extend({}, defaults, options))
- event.preventDefault()
- }
- // Loads a URL with ajax, puts the response body inside a container,
- // and so pushState()'southward the loaded URL.
- //
- // Works just like $.ajax in that information technology accepts a jQuery ajax
- // settings object (with keys like url, type, data, etc).
- //
- // Accepts these extra keys:
- //
- // container - Where to stick the response body.
- // $(container).html(xhr.responseBody)
- // push button - Whether to pushState the URL. Defaults to truthful (of course).
- // replace - Desire to use replaceState instead? That'southward cool.
- //
- // Use it but similar $.ajax:
- //
- // var xhr = $.pjax({ url: this.href, container: '#primary' })
- // console.log( xhr.readyState )
- //
- // Returns whatsoever $.ajax returns.
- function pjax(options) {
- options = $.extend(true, {}, $.ajaxSettings, pjax.defaults, options)
- if ($.isFunction(options.url)) {
- options.url = options.url()
- }
- var target = options.target
- var hash = parseURL(options.url).hash
- var context = options.context = findContainerFor(options.container)
- // We desire the browser to maintain two separate internal caches: one
- // for pjax'd partial page loads and one for normal page loads.
- // Without calculation this secret parameter, some browsers will oftentimes
- // misfile the two.
- if (!options.information) options.data = {}
- options.information._pjax = context.selector
- office fire(blazon, args) {
- var event = $.Result(type, { relatedTarget: target })
- context.trigger(event, args)
- render !effect.isDefaultPrevented()
- }
- var timeoutTimer
- options.beforeSend = role(xhr, settings) {
- // No timeout for not-GET requests
- // Its not safe to request the resources again with a fallback method.
- if (settings.type !== 'GET') {
- settings.timeout = 0
- }
- xhr.setRequestHeader('10-PJAX', 'truthful')
- xhr.setRequestHeader('X-PJAX-Container', context.selector)
- if (!fire('pjax:beforeSend', [xhr, settings]))
- return fake
- if (settings.timeout > 0) {
- timeoutTimer = setTimeout(part() {
- if (fire('pjax:timeout', [xhr, options]))
- xhr.abort('timeout')
- }, settings.timeout)
- // Articulate timeout setting so jquerys internal timeout isn't invoked
- settings.timeout = 0
- }
- options.requestUrl = parseURL(settings.url).href
- }
- options.complete = function(xhr, textStatus) {
- if (timeoutTimer)
- clearTimeout(timeoutTimer)
- fire('pjax:complete', [xhr, textStatus, options])
- burn down('pjax:end', [xhr, options])
- }
- options.error = function(xhr, textStatus, errorThrown) {
- var container = extractContainer("", xhr, options)
- var allowed = burn down('pjax:error', [xhr, textStatus, errorThrown, options])
- if (options.type == 'Go' && textStatus !== 'arrest' && allowed) {
- locationReplace(container.url)
- }
- }
- options.success = office(data, status, xhr) {
- // If $.pjax.defaults.version is a function, invoke it first.
- // Otherwise it tin exist a static string.
- var currentVersion = (typeof $.pjax.defaults.version === 'part') ?
- $.pjax.defaults.version() :
- $.pjax.defaults.version
- var latestVersion = xhr.getResponseHeader('X-PJAX-Version')
- var container = extractContainer(data, xhr, options)
- // If there is a layout version mismatch, hard load the new url
- if (currentVersion && latestVersion && currentVersion !== latestVersion) {
- locationReplace(container.url)
- return
- }
- // If the new response is missing a body, hard load the page
- if (!container.contents) {
- locationReplace(container.url)
- return
- }
- pjax.state = {
- id: options.id || uniqueId(),
- url: container.url,
- title: container.title,
- container: context.selector,
- fragment: options.fragment,
- timeout: options.timeout
- }
- if (options.push || options.replace) {
- window.history.replaceState(pjax.state, container.title, container.url)
- }
- // Clear out whatsoever focused controls before inserting new folio contents.
- try {
- document.activeElement.blur()
- } catch (east) { }
- if (container.title) document.title = container.championship
- fire('pjax:beforeReplace', [container.contents, options])
- context.html(container.contents)
- // FF issues: Won't autofocus fields that are inserted via JS.
- // This behavior is incorrect. Then if theres no current focus, autofocus
- // the last field.
- //
- // http://world wide web.w3.org/html/wg/drafts/html/master/forms.html
- var autofocusEl = context.find('input[autofocus], textarea[autofocus]').last()[0]
- if (autofocusEl && document.activeElement !== autofocusEl) {
- autofocusEl.focus();
- }
- executeScriptTags(container.scripts)
- // Scroll to meridian past default
- if (typeof options.scrollTo === 'number')
- $(window).scrollTop(options.scrollTo)
- // If the URL has a hash in it, make sure the browser
- // knows to navigate to the hash.
- if ( hash !== '' ) {
- // Avoid using simple hash set here. Will add together another history
- // entry. Supercede the url with replaceState and roll to target
- // by mitt.
- //
- // window.location.hash = hash
- var url = parseURL(container.url)
- url.hash = hash
- pjax.land.url = url.href
- window.history.replaceState(pjax.state, container.title, url.href)
- var target = $(url.hash)
- if (target.length) $(window).scrollTop(target.outset().pinnacle)
- }
- burn down('pjax:success', [information, status, xhr, options])
- }
- // Initialize pjax.state for the initial folio load. Presume we're
- // using the container and options of the link we're loading for the
- // dorsum push to the initial page. This ensures good back push
- // behavior.
- if (!pjax.state) {
- pjax.land = {
- id: uniqueId(),
- url: window.location.href,
- title: document.title,
- container: context.selector,
- fragment: options.fragment,
- timeout: options.timeout
- }
- window.history.replaceState(pjax.country, certificate.championship)
- }
- // Abolish the current request if we're already pjaxing
- var xhr = pjax.xhr
- if ( xhr && xhr.readyState < 4) {
- xhr.onreadystatechange = $.noop
- xhr.abort()
- }
- pjax.options = options
- var xhr = pjax.xhr = $.ajax(options)
- if (xhr.readyState > 0) {
- if (options.button && !options.supersede) {
- // Cache current container element before replacing information technology
- cachePush(pjax.land.id, context.clone().contents())
- window.history.pushState(naught, "", stripPjaxParam(options.requestUrl))
- }
- burn('pjax:start', [xhr, options])
- fire('pjax:ship', [xhr, options])
- }
- return pjax.xhr
- }
- // Public: Reload current folio with pjax.
- //
- // Returns whatsoever $.pjax returns.
- part pjaxReload(container, options) {
- var defaults = {
- url: window.location.href,
- push: false,
- replace: true,
- scrollTo: false
- }
- return pjax($.extend(defaults, optionsFor(container, options)))
- }
- // Internal: Hard replace current state with url.
- //
- // Piece of work for effectually WebKit
- // https://bugs.webkit.org/show_bug.cgi?id=93506
- //
- // Returns nothing.
- function locationReplace(url) {
- window.history.replaceState(nil, "", "#")
- window.location.replace(url)
- }
- var initialPop = true
- var initialURL = window.location.href
- var initialState = window.history.state
- // Initialize $.pjax.state if possible
- // Happens when reloading a page and coming forward from a different
- // session history.
- if (initialState && initialState.container) {
- pjax.state = initialState
- }
- // Non-webkit browsers don't fire an initial popstate event
- if ('state' in window.history) {
- initialPop = false
- }
- // popstate handler takes intendance of the back and frontwards buttons
- //
- // Y'all probably shouldn't employ pjax on pages with other pushState
- // stuff even so.
- function onPjaxPopstate(event) {
- var state = event.state
- if (state && land.container) {
- // When coming forward from a dissever history session, volition get an
- // initial pop with a state we are already at. Skip reloading the current
- // page.
- if (initialPop && initialURL == land.url) render
- // If popping back to the aforementioned country, just skip.
- // Could exist clicking back from hashchange rather than a pushState.
- if (pjax.state && pjax.land.id === state.id) render
- var container = $(country.container)
- if (container.length) {
- var direction, contents = cacheMapping[state.id]
- if (pjax.state) {
- // Since country ids ever increase, nosotros tin deduce the history
- // management from the previous state.
- direction = pjax.state.id < state.id ? 'forward' : 'back'
- // Enshroud electric current container before replacement and inform the
- // cache which management the history shifted.
- cachePop(direction, pjax.state.id, container.clone().contents())
- }
- var popstateEvent = $.Result('pjax:popstate', {
- state: land,
- management: direction
- })
- container.trigger(popstateEvent)
- var options = {
- id: land.id,
- url: state.url,
- container: container,
- push: false,
- fragment: land.fragment,
- timeout: state.timeout,
- scrollTo: simulated
- }
- if (contents) {
- container.trigger('pjax:start', [cipher, options])
- if (state.championship) document.title = land.championship
- container.trigger('pjax:beforeReplace', [contents, options])
- container.html(contents)
- pjax.country = state
- container.trigger('pjax:end', [null, options])
- } else {
- pjax(options)
- }
- // Strength reflow/relayout before the browser tries to restore the
- // scroll position.
- container[0].offsetHeight
- } else {
- locationReplace(location.href)
- }
- }
- initialPop = false
- }
- // Fallback version of main pjax role for browsers that don't
- // support pushState.
- //
- // Returns goose egg since information technology retriggers a hard class submission.
- part fallbackPjax(options) {
- var url = $.isFunction(options.url) ? options.url() : options.url,
- method = options.type ? options.type.toUpperCase() : 'GET'
- var form = $('<form>', {
- method: method === 'GET' ? 'Go' : 'POST',
- action: url,
- style: 'brandish:none'
- })
- if (method !== 'GET' && method !== 'Post') {
- form.suspend($('<input>', {
- type: 'hidden',
- proper name: '_method',
- value: method.toLowerCase()
- }))
- }
- var information = options.data
- if (typeof data === 'string') {
- $.each(data.split up('&'), function(index, value) {
- var pair = value.split('=')
- form.append($('<input>', {type: 'hidden', proper name: pair[0], value: pair[1]}))
- })
- } else if (typeof data === 'object') {
- for (cardinal in data)
- form.append($('<input>', {blazon: 'hidden', name: key, value: data[key]}))
- }
- $(certificate.trunk).append(course)
- class.submit()
- }
- // Internal: Generate unique id for country object.
- //
- // Use a timestamp instead of a counter since ids should even so be
- // unique across page loads.
- //
- // Returns Number.
- function uniqueId() {
- return (new Date).getTime()
- }
- // Internal: Strips _pjax param from url
- //
- // url - String
- //
- // Returns Cord.
- function stripPjaxParam(url) {
- return url
- .replace(/\?_pjax=[^&]+&?/, '?')
- .replace(/_pjax=[^&]+&?/, '')
- .replace(/[\?&]$/, '')
- }
- // Internal: Parse URL components and returns a Locationish object.
- //
- // url - Cord URL
- //
- // Returns HTMLAnchorElement that acts similar Location.
- function parseURL(url) {
- var a = document.createElement('a')
- a.href = url
- return a
- }
- // Internal: Build options Object for arguments.
- //
- // For convenience the first parameter tin can be either the container or
- // the options object.
- //
- // Examples
- //
- // optionsFor('#container')
- // // => {container: '#container'}
- //
- // optionsFor('#container', {push button: true})
- // // => {container: '#container', push: true}
- //
- // optionsFor({container: '#container', push: true})
- // // => {container: '#container', button: truthful}
- //
- // Returns options Object.
- function optionsFor(container, options) {
- // Both container and options
- if ( container && options )
- options.container = container
- // First argument is options Object
- else if ( $.isPlainObject(container) )
- options = container
- // Merely container
- else
- options = {container: container}
- // Find and validate container
- if (options.container)
- options.container = findContainerFor(options.container)
- return options
- }
- // Internal: Discover container element for a variety of inputs.
- //
- // Because we can't persist elements using the history API, we must exist
- // able to find a String selector that will consistently notice the Chemical element.
- //
- // container - A selector Cord, jQuery object, or DOM Element.
- //
- // Returns a jQuery object whose context is `certificate` and has a selector.
- office findContainerFor(container) {
- container = $(container)
- if ( !container.length ) {
- throw "no pjax container for " + container.selector
- } else if ( container.selector !== '' && container.context === certificate ) {
- return container
- } else if ( container.attr('id') ) {
- return $('#' + container.attr('id'))
- } else {
- throw "cant become selector for pjax container!"
- }
- }
- // Internal: Filter and find all elements matching the selector.
- //
- // Where $.fn.find only matches descendants, findAll volition test all the
- // top level elements in the jQuery object likewise.
- //
- // elems - jQuery object of Elements
- // selector - String selector to match
- //
- // Returns a jQuery object.
- part findAll(elems, selector) {
- render elems.filter(selector).add(elems.find(selector));
- }
- role parseHTML(html) {
- return $.parseHTML(html, document, true)
- }
- // Internal: Extracts container and metadata from response.
- //
- // i. Extracts X-PJAX-URL header if fix
- // 2. Extracts inline <title> tags
- // 3. Builds response Chemical element and extracts fragment if set
- //
- // data - Cord response data
- // xhr - XHR response
- // options - pjax options Object
- //
- // Returns an Object with url, championship, and contents keys.
- function extractContainer(information, xhr, options) {
- var obj = {}
- // Prefer X-PJAX-URL header if it was prepare, otherwise fallback to
- // using the original requested url.
- obj.url = stripPjaxParam(xhr.getResponseHeader('X-PJAX-URL') || options.requestUrl)
- // Attempt to parse response html into elements
- if (/<html/i.test(data)) {
- var $head = $(parseHTML(data.match(/<head[^>]*>([\south\S.]*)<\/caput>/i)[0]))
- var $body = $(parseHTML(data.lucifer(/<body[^>]*>([\due south\S.]*)<\/trunk>/i)[0]))
- } else {
- var $caput = $torso = $(parseHTML(information))
- }
- // If response information is empty, return fast
- if ($body.length === 0)
- render obj
- // If there's a <title> tag in the header, apply it equally
- // the folio's championship.
- obj.championship = findAll($head, 'championship').last().text()
- if (options.fragment) {
- // If they specified a fragment, look for it in the response
- // and pull it out.
- if (options.fragment === 'body') {
- var $fragment = $body
- } else {
- var $fragment = findAll($body, options.fragment).first()
- }
- if ($fragment.length) {
- obj.contents = $fragment.contents()
- // If in that location's no title, wait for information-title and title attributes
- // on the fragment
- if (!obj.title)
- obj.title = $fragment.attr('title') || $fragment.data('championship')
- }
- } else if (!/<html/i.exam(data)) {
- obj.contents = $trunk
- }
- // Clean up any <championship> tags
- if (obj.contents) {
- // Remove whatsoever parent title elements
- obj.contents = obj.contents.not(function() { return $(this).is('championship') })
- // So scrub whatever titles from their descendants
- obj.contents.detect('title').remove()
- // Get together all script[src] elements
- obj.scripts = findAll(obj.contents, 'script[src]').remove()
- obj.contents = obj.contents.not(obj.scripts)
- }
- // Trim any whitespace off the title
- if (obj.championship) obj.title = $.trim(obj.title)
- render obj
- }
- // Load an execute scripts using standard script request.
- //
- // Avoids jQuery's traditional $.getScript which does a XHR request and
- // globalEval.
- //
- // scripts - jQuery object of script Elements
- //
- // Returns naught.
- role executeScriptTags(scripts) {
- if (!scripts) return
- var existingScripts = $('script[src]')
- scripts.each(function() {
- var src = this.src
- var matchedScripts = existingScripts.filter(part() {
- return this.src === src
- })
- if (matchedScripts.length) return
- var script = certificate.createElement('script')
- script.type = $(this).attr('type')
- script.src = $(this).attr('src')
- document.head.appendChild(script)
- })
- }
- // Internal: History DOM caching form.
- var cacheMapping = {}
- var cacheForwardStack = []
- var cacheBackStack = []
- // Push previous state id and container contents into the history
- // enshroud. Should exist called in conjunction with `pushState` to save the
- // previous container contents.
- //
- // id - Country ID Number
- // value - DOM Element to cache
- //
- // Returns zilch.
- function cachePush(id, value) {
- cacheMapping[id] = value
- cacheBackStack.push(id)
- // Remove all entires in forward history stack after pushing
- // a new page.
- while (cacheForwardStack.length)
- delete cacheMapping[cacheForwardStack.shift()]
- // Trim back history stack to max cache length.
- while (cacheBackStack.length > pjax.defaults.maxCacheLength)
- delete cacheMapping[cacheBackStack.shift()]
- }
- // Shifts cache from directional history cache. Should be
- // called on `popstate` with the previous land id and container
- // contents.
- //
- // management - "forrard" or "back" String
- // id - Country ID Number
- // value - DOM Chemical element to enshroud
- //
- // Returns zero.
- function cachePop(management, id, value) {
- var pushStack, popStack
- cacheMapping[id] = value
- if (management === 'frontward') {
- pushStack = cacheBackStack
- popStack = cacheForwardStack
- } else {
- pushStack = cacheForwardStack
- popStack = cacheBackStack
- }
- pushStack.push(id)
- if (id = popStack.pop())
- delete cacheMapping[id]
- }
- // Public: Find version identifier for the initial page load.
- //
- // Returns Cord version or undefined.
- function findVersion() {
- return $('meta').filter(function() {
- var proper noun = $(this).attr('http-equiv')
- return name && name.toUpperCase() === 'X-PJAX-VERSION'
- }).attr('content')
- }
- // Install pjax functions on $.pjax to enable pushState behavior.
- //
- // Does nothing if already enabled.
- //
- // Examples
- //
- // $.pjax.enable()
- //
- // Returns nothing.
- function enable() {
- $.fn.pjax = fnPjax
- $.pjax = pjax
- $.pjax.enable = $.noop
- $.pjax.disable = disable
- $.pjax.click = handleClick
- $.pjax.submit = handleSubmit
- $.pjax.reload = pjaxReload
- $.pjax.defaults = {
- timeout: 650,
- button: truthful,
- replace: false,
- type: 'Get',
- dataType: 'html',
- scrollTo: 0,
- maxCacheLength: 20,
- version: findVersion
- }
- $(window).on('popstate.pjax', onPjaxPopstate)
- }
- // Disable pushState beliefs.
- //
- // This is the example when a browser doesn't support pushState. Information technology is
- // sometimes useful to disable pushState for debugging on a modern
- // browser.
- //
- // Examples
- //
- // $.pjax.disable()
- //
- // Returns nothing.
- role disable() {
- $.fn.pjax = office() { return this }
- $.pjax = fallbackPjax
- $.pjax.enable = enable
- $.pjax.disable = $.noop
- $.pjax.click = $.noop
- $.pjax.submit = $.noop
- $.pjax.reload = function() { window.location.reload() }
- $(window).off('popstate.pjax', onPjaxPopstate)
- }
- // Add the land property to jQuery'due south event object so we can use it in
- // $(window).bind('popstate')
- if ( $.inArray('state', $.event.props) < 0 )
- $.issue.props.push button('land')
- // Is pjax supported by this browser?
- $.support.pjax =
- window.history && window.history.pushState && window.history.replaceState &&
- // pushState isn't reliable on iOS until 5.
- !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/)
- $.support.pjax ? enable() : disable()
- })(jQuery);
الخطوة 2: ضع الكود التالي أمام النص في ملف header.php. لاحظ أنه يرجى استبدال [] بـ <> في الكود أدناه
- [script type="text/javascript"]
- $(certificate).pjax('a', '#page', {fragment:'#page', timeout:8000});
- [/script]
ثم قم بتحديث موقع الويب الخاص بك لتجربة الشعور بعدم التحديث على الموقع بأكمله ، والقوالب الأخرى ، وما إلى ذلك
طبع يرجى ترك حقوق الطبع والنشر بلوق المارة
العنوان الأصلي
التفكير الأخير في استراتيجية CI / CD ونموذج فرع git
في الشهرين الماضيين ، بسبب مرحلة التكيف الشخصي للبيئة الجديدة والمشاريع الجديدة ، لم أقم بتربية الكثير من قلمي لكتابة المقالات. هناك العديد من الأفكار في المنتصف التي أريد تسجيلها ومشاركتها ، لكنني مق...
ممارسة مشروع جافا: آلة حاسبة (مع شفرة المصدر)
حاسبة الموضوع محتوى التصميمتصميم تطبيق حاسبة واجهة رسومية (GUI) لإكمال العمليات الحسابية البسيطة ، متطلبات التصميم يمكن لبرنامج تطبيق الآلة الحاسبة المصمم إكمال العمليات الرئيسية والطرح والضرب والقسمة...
golang ثابت
ثابت ثابت هو معرف لقيمة بسيطة، ولن يتم تعديله عند تشغيل البرنامج. يمكن أن يكون نوع البيانات في الثابت فقط منطقية، الرقمية (عدد صحيح، نقطة عائمة، الجمع) ونوع السلسلة. المستخدمة في golang.constتعال إلى ...
مشغل comsol مع setval والعطل
في الآونة الأخيرة، قابلت العديد من المشغلين عندما تعلمت النموذج وسجلوا يوميات التعلم هنا. التعبير الأصلي هو: withsol ('cpsol1'، solid.cp1.sigmatmp6، setval (loadingcase، 6)) استخدام withol. العثور على...
لينكس ملف الضغط
لينكس نظام الضغط المحتوى أدوات محلول: Compreee، غزيب BZIP2، في XZ، Zip أداة الأرشيف: القطران، CPIO أداة الضغط مضغوط ضغط / إلغاء ضغط: وهو يقابل الملفات (أدوات الضغط المبكر) مع تنسيقات التي لا نهاية لها...
قائمة الارتباط 05 حذف
حذف العقدة أو العثور على عقدة السلف المراد حذفها؛ في الوقت نفسه، اخراج العقدة المراد حذفها، حيث أن عقدة محرك الأقراص الأمامي "تقفز" جسرها الخاص؛ الانتباه إلى حالة أثناء الدوراتprev.next != n...
الاختلافات بين Tomcat و Nginx، Apache
خادم HTTP هو أساسا مثل هذه الأشياء القليلة: مراقبة ميناء قبول (قبول) اتصال مأخذ قرار طلب HTTP توزيع الطلبات باستخدام بروتوكولات عامة أو خاصة تشغيل النتائج الناتجة عن طريق تلقي طلبات التوزيع قم بتنسيق ...
Source: https://arabicprogrammer.com/article/6996451998/
Post a Comment for "Pjax.reload Cannot Read Property 'reload' of Undefined"